mirror of
https://git.savannah.gnu.org/git/coreutils.git
synced 2026-11-17 18:02:09 +03:00
(find_mount_point): Call error here, now that restore_cwd no longer does it.
This commit is contained in:
1 parent
541c6da4ba
commit
5ef70ce637
1 file changed
+3
-2
@@ -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;
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user