(remove_cwd_entries): Include the full filename of

the offending file, not just the basename.
This commit is contained in:
Jim Meyering
2003-03-03 20:03:43 +00:00
parent e7a2d01f98
commit 4756c070ad
+2 -1
View File
@@ -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));