]> git.ipfire.org Git - thirdparty/coreutils.git/commitdiff
(find_mount_point): Call error here, now that restore_cwd no longer does it.
authorJim Meyering <jim@meyering.net>
Tue, 4 Mar 2003 21:29:56 +0000 (21:29 +0000)
committerJim Meyering <jim@meyering.net>
Tue, 4 Mar 2003 21:29:56 +0000 (21:29 +0000)
src/df.c

index 569a43fb4913d58bb64f4bab25b05ec308cf0f80..fdeb14c8c97b440468b765440e1539ff1989fe2e 100644 (file)
--- 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;
   }