From: Jim Meyering Date: Tue, 4 Mar 2003 21:29:56 +0000 (+0000) Subject: (find_mount_point): Call error here, now that restore_cwd no longer does it. X-Git-Tag: v4.5.9~47 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=5ef70ce637cc76c4c3c5e1a7d0ba06f2ad3f8317;p=thirdparty%2Fcoreutils.git (find_mount_point): Call error here, now that restore_cwd no longer does it. --- 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; }