summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--src/remove.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/remove.c b/src/remove.c
index 2e31323ab..0536893e7 100644
--- a/src/remove.c
+++ b/src/remove.c
@@ -615,7 +615,7 @@ remove_file (struct File_spec *fs, const struct rm_options *x)
int asked = 0;
char *pathname = fs->filename;
- if (!x->ignore_missing_files && x->interactive && x->stdin_tty
+ if (!x->ignore_missing_files && (x->interactive || x->stdin_tty)
&& euidaccess (pathname, W_OK))
{
if (!S_ISLNK (fspec_filetype_mode (fs)))