mirror of
https://sourceware.org/git/glibc.git
synced 2024-12-22 10:50:07 +00:00
(main): Don't ignore result of chdir call.
This commit is contained in:
parent
0c1a4a1995
commit
be686f1876
@ -240,7 +240,9 @@ main (int argc, char **argv)
|
||||
|
||||
setsid ();
|
||||
|
||||
chdir ("/");
|
||||
if (chdir ("/") != 0)
|
||||
error (EXIT_FAILURE, errno,
|
||||
_("cannot change current working cirectory to \"/\""));
|
||||
|
||||
openlog ("nscd", LOG_CONS | LOG_ODELAY, LOG_DAEMON);
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user