From 5ef70ce637cc76c4c3c5e1a7d0ba06f2ad3f8317 Mon Sep 17 00:00:00 2001 From: Jim Meyering Date: Tue, 4 Mar 2003 21:29:56 +0000 Subject: [PATCH] (find_mount_point): Call error here, now that restore_cwd no longer does it. --- src/df.c | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/src/df.c b/src/df.c index 569a43fb49..fdeb14c8c9 100644 --- a/src/df.c +++ b/src/df.c @@ -492,8 +492,9 @@ done: /* Restore the original cwd. */ { int save_errno = errno; - if (restore_cwd (&cwd, 0, mp)) - exit (EXIT_FAILURE); /* We're scrod. */ + if (restore_cwd (&cwd)) + error (EXIT_FAILURE, errno, + _("failed to return to initial working directory")); free_cwd (&cwd); errno = save_errno; } -- 2.47.3