summaryrefslogtreecommitdiff
path: root/src/df.c
diff options
context:
space:
mode:
authorJim Meyering <jim@meyering.net>2003-03-04 21:29:56 +0000
committerJim Meyering <jim@meyering.net>2003-03-04 21:29:56 +0000
commit5ef70ce637cc76c4c3c5e1a7d0ba06f2ad3f8317 (patch)
treee6ff52a6623b1803b6b1d59435f7126acfcf12af /src/df.c
parent541c6da4bad3f9c4247ced2874c3cc10ac0a2860 (diff)
downloadcoreutils-5ef70ce637cc76c4c3c5e1a7d0ba06f2ad3f8317.tar.xz
(find_mount_point): Call error here, now that restore_cwd no longer does it.
Diffstat (limited to 'src/df.c')
-rw-r--r--src/df.c5
1 files changed, 3 insertions, 2 deletions
diff --git a/src/df.c b/src/df.c
index 569a43fb4..fdeb14c8c 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;
}