diff options
author | Squibid <me@zacharyscheiman.com> | 2023-05-09 21:51:43 -0400 |
---|---|---|
committer | Squibid <me@zacharyscheiman.com> | 2023-05-09 21:51:43 -0400 |
commit | a91afd65d177132ad03e28dfc5028f62dbd48011 (patch) | |
tree | dfb218c26c156e6b48b24280ca06fda953039a0f /rm.c | |
parent | 675b659f00376bf700c8a4ca88db4c230b6432b8 (diff) | |
download | coreutils-a91afd65d177132ad03e28dfc5028f62dbd48011.tar.gz coreutils-a91afd65d177132ad03e28dfc5028f62dbd48011.tar.bz2 coreutils-a91afd65d177132ad03e28dfc5028f62dbd48011.zip |
check both frc && prompt in rm.c
Diffstat (limited to '')
-rw-r--r-- | rm.c | 2 |
1 files changed, 1 insertions, 1 deletions
@@ -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(); |