aboutsummaryrefslogtreecommitdiffstats
path: root/rm.c
diff options
context:
space:
mode:
authorSquibid <me@zacharyscheiman.com>2023-05-09 21:51:43 -0400
committerSquibid <me@zacharyscheiman.com>2023-05-09 21:51:43 -0400
commita91afd65d177132ad03e28dfc5028f62dbd48011 (patch)
treedfb218c26c156e6b48b24280ca06fda953039a0f /rm.c
parent675b659f00376bf700c8a4ca88db4c230b6432b8 (diff)
downloadcoreutils-a91afd65d177132ad03e28dfc5028f62dbd48011.tar.gz
coreutils-a91afd65d177132ad03e28dfc5028f62dbd48011.tar.bz2
coreutils-a91afd65d177132ad03e28dfc5028f62dbd48011.zip
check both frc && prompt in rm.c
Diffstat (limited to '')
-rw-r--r--rm.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/rm.c b/rm.c
index 00dbd76..27ccf19 100644
--- a/rm.c
+++ b/rm.c
@@ -23,7 +23,7 @@ rm(char *fn, int frc, int ask, int prompt)
}
/* confirm deletion(s) when ask is on, and size is over 0 */
- if (prompt && !frc || (ask && sz > 0)) {
+ if ((prompt && !frc) || (ask && sz > 0)) {
printf("Do you want to delete %s? ", fn);
yn = getchar();