From 4756c070ade13249e673db518e79e93f04ddcdae Mon Sep 17 00:00:00 2001 From: Jim Meyering Date: Mon, 3 Mar 2003 20:03:43 +0000 Subject: [PATCH] (remove_cwd_entries): Include the full filename of the offending file, not just the basename. --- src/remove.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/remove.c b/src/remove.c index da07f5d80b..5c8e203d2b 100644 --- a/src/remove.c +++ b/src/remove.c @@ -888,7 +888,8 @@ remove_cwd_entries (Dirstack_state *ds, char **subdir, struct stat *subdir_sb, block of code and when DO_UNLINK fails due to EPERM. In that case, give a better diagnostic. */ if (errno == ENOTDIR) - error (0, saved_errno, _("cannot remove %s"), quote (f)); + error (0, saved_errno, _("cannot remove %s"), + quote (full_filename (f))); else error (0, errno, _("cannot chdir from %s to %s"), quote_n (0, full_filename (".")), quote_n (1, f)); -- 2.47.3