summaryrefslogtreecommitdiff
path: root/src/rm.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/rm.c')
-rw-r--r--src/rm.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/rm.c b/src/rm.c
index 5ff703cba..cd5dd2050 100644
--- a/src/rm.c
+++ b/src/rm.c
@@ -1,5 +1,5 @@
/* `rm' file deletion utility for GNU.
- Copyright (C) 1988, 1990, 1991 Free Software Foundation, Inc.
+ Copyright (C) 1988, 1990, 1991, 1994 Free Software Foundation, Inc.
This program is free software; you can redistribute it and/or modify
it under the terms of the GNU General Public License as published by
@@ -270,7 +270,7 @@ remove_dir (statp)
}
if (!ignore_missing_files && (interactive || stdin_tty)
- && eaccess_stat (statp, W_OK))
+ && eaccess_stat (statp, W_OK, pathname))
{
fprintf (stderr,
"%s: descend directory `%s', overriding mode %04o? ",