summaryrefslogtreecommitdiff
path: root/src/rm.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/rm.c')
-rw-r--r--src/rm.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/rm.c b/src/rm.c
index 722994735..1365e6656 100644
--- a/src/rm.c
+++ b/src/rm.c
@@ -228,7 +228,7 @@ remove_file (statp)
struct stat *statp;
{
if (!ignore_missing_files && (interactive || stdin_tty)
- && eaccess_stat (statp, W_OK)
+ && eaccess_stat (statp, W_OK, pathname)
#ifdef S_ISLNK
&& !S_ISLNK (statp->st_mode)
#endif