From e628a56597540dd563d8d988afcdb0d1720f1523 Mon Sep 17 00:00:00 2001 From: Jim Meyering Date: Tue, 4 Mar 2003 21:30:27 +0000 Subject: (AD_pop_and_chdir): Call error here, now that restore_cwd no longer does it. --- src/remove.c | 5 +++-- 1 file 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)) -- cgit v1.2.3-70-g09d2