From: Jim Meyering Date: Tue, 4 Mar 2003 21:30:27 +0000 (+0000) Subject: (AD_pop_and_chdir): Call error here, now that restore_cwd no longer does it. X-Git-Tag: v4.5.9~46 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=e628a56597540dd563d8d988afcdb0d1720f1523;p=thirdparty%2Fcoreutils.git (AD_pop_and_chdir): Call error here, now that restore_cwd no longer does it. --- diff --git a/src/remove.c b/src/remove.c index 5c8e203d2b..36fe332f62 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))