diff options
author | Jim Meyering <jim@meyering.net> | 2003-03-04 21:29:56 +0000 |
---|---|---|
committer | Jim Meyering <jim@meyering.net> | 2003-03-04 21:29:56 +0000 |
commit | 5ef70ce637cc76c4c3c5e1a7d0ba06f2ad3f8317 (patch) | |
tree | e6ff52a6623b1803b6b1d59435f7126acfcf12af | |
parent | 541c6da4bad3f9c4247ced2874c3cc10ac0a2860 (diff) | |
download | coreutils-5ef70ce637cc76c4c3c5e1a7d0ba06f2ad3f8317.tar.xz |
(find_mount_point): Call error here, now that restore_cwd no longer does it.
-rw-r--r-- | src/df.c | 5 |
1 files changed, 3 insertions, 2 deletions
@@ -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; } |