mirror of
git://git.sv.gnu.org/coreutils
synced 2026-06-01 13:31:08 -04:00
`chmod 0 file; rm file' would no longer prompt before removal.
(remove_file): Revert last change.
This commit is contained in:
+1
-1
@@ -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)))
|
||||
|
||||
Reference in New Issue
Block a user