Commit 61435768 by Serge Hallyn

check and warn of return value from fchdir

parent cc423c67
......@@ -928,7 +928,9 @@ static void run_makedev(char *devpath)
}
if (run_buffer("/sbin/MAKEDEV console"))
INFO("Error running MAKEDEV console in %s", devpath);
fchdir(curd);
ret = fchdir(curd);
if (ret)
INFO("Error returning to original directory: expect breakage");
close(curd);
}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment