diff options
author | Jim Meyering <jim@meyering.net> | 2003-03-04 21:30:27 +0000 |
---|---|---|
committer | Jim Meyering <jim@meyering.net> | 2003-03-04 21:30:27 +0000 |
commit | e628a56597540dd563d8d988afcdb0d1720f1523 (patch) | |
tree | 6238afe5cb1945574ad972b933e922b8f57c5313 | |
parent | 5ef70ce637cc76c4c3c5e1a7d0ba06f2ad3f8317 (diff) | |
download | coreutils-e628a56597540dd563d8d988afcdb0d1720f1523.tar.xz |
(AD_pop_and_chdir): Call error here, now that restore_cwd no longer does it.
-rw-r--r-- | src/remove.c | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/src/remove.c b/src/remove.c index 5c8e203d2..36fe332f6 100644 --- a/src/remove.c +++ b/src/remove.c @@ -397,8 +397,9 @@ AD_pop_and_chdir (Dirstack_state *ds) } else { - if (restore_cwd (&top->u.saved_cwd, NULL, NULL)) - exit (EXIT_FAILURE); + if (restore_cwd (&top->u.saved_cwd)) + error (EXIT_FAILURE, errno, + _("failed to return to initial working directory")); } if (lstat (".", &sb)) |