[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[PATCH] Tell name of the directory when saving or changing into to it fa
From: |
Sami Kerola |
Subject: |
[PATCH] Tell name of the directory when saving or changing into to it fails. |
Date: |
Sun, 17 Aug 2014 12:48:54 +0100 |
* find/util.c: In record_initial_cwd() and cleanup_initial_cwd().
* find/exec.c: In prep_child_for_exec().
---
find/exec.c | 2 +-
find/util.c | 4 ++--
2 files changed, 3 insertions(+), 3 deletions(-)
diff --git a/find/exec.c b/find/exec.c
index 06394f1..a57b6d4 100644
--- a/find/exec.c
+++ b/find/exec.c
@@ -282,7 +282,7 @@ prep_child_for_exec (bool close_stdin, const struct
saved_cwd *wd)
*/
if (0 != restore_cwd (wd))
{
- error (0, errno, _("Failed to change directory"));
+ error (0, errno, _("Failed to change directory: %s"), wd);
ok = false;
}
return ok;
diff --git a/find/util.c b/find/util.c
index d603fc7..eb5efa2 100644
--- a/find/util.c
+++ b/find/util.c
@@ -456,7 +456,7 @@ record_initial_cwd (void)
if (0 != save_cwd (initial_wd))
{
error (EXIT_FAILURE, errno,
- _("failed to save initial working directory"));
+ _("failed to save initial working directory: %s"), initial_wd);
}
}
@@ -473,7 +473,7 @@ cleanup_initial_cwd (void)
{
/* since we may already be in atexit, die with _exit(). */
error (0, errno,
- _("failed to restore initial working directory"));
+ _("failed to restore initial working directory: %s"), initial_wd);
_exit (EXIT_FAILURE);
}
}
--
2.0.4
- [PATCH] Tell name of the directory when saving or changing into to it fails.,
Sami Kerola <=