]> git.ipfire.org Git - thirdparty/coreutils.git/commitdiff
(remove_cwd_entries): Include the full filename of
authorJim Meyering <jim@meyering.net>
Mon, 3 Mar 2003 20:03:43 +0000 (20:03 +0000)
committerJim Meyering <jim@meyering.net>
Mon, 3 Mar 2003 20:03:43 +0000 (20:03 +0000)
the offending file, not just the basename.

src/remove.c

index da07f5d80b2d20ca118b4ff43c2b8086b9b06a46..5c8e203d2b5fe86b79f92a427d58f1111365871a 100644 (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));