]> git.ipfire.org Git - thirdparty/coreutils.git/commitdiff
`chmod 0 file; rm file' would no longer prompt before removal.
authorJim Meyering <jim@meyering.net>
Sun, 18 Feb 2001 16:24:21 +0000 (16:24 +0000)
committerJim Meyering <jim@meyering.net>
Sun, 18 Feb 2001 16:24:21 +0000 (16:24 +0000)
(remove_file): Revert last change.

src/remove.c

index 2e31323ab9f1d2e0b3812aa33e072399ae28ebb3..0536893e7fe99f4f8144173bf342265adc4b31af 100644 (file)
@@ -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)))