diff options
-rw-r--r-- | src/remove.c | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/src/remove.c b/src/remove.c index 8fa482e05..59368ac09 100644 --- a/src/remove.c +++ b/src/remove.c @@ -574,7 +574,11 @@ prompt (char const *filename, struct rm_options const *x, /* Using permissions doesn't make sense for symlinks. */ if (S_ISLNK (sbuf.st_mode)) - write_protected = 0; + { + if ( ! x->interactive) + return RM_OK; + write_protected = 0; + } /* Issue the prompt. */ { |