(find_mount_point): Call error here, now that restore_cwd no longer does it.

This commit is contained in:
Jim Meyering committed 2003-03-04 21:29:56 +00:00
1 parent 541c6da4ba
commit 5ef70ce637
1 file changed
+3 -2
+3 -2
View File
@@ -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;
}