mirror of git://sourceware.org/git/glibc.git
(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 ();
|
setsid ();
|
||||||
|
|
||||||
chdir ("/");
|
if (chdir ("/") != 0)
|
||||||
|
error (EXIT_FAILURE, errno,
|
||||||
|
_("cannot change current working cirectory to \"/\""));
|
||||||
|
|
||||||
openlog ("nscd", LOG_CONS | LOG_ODELAY, LOG_DAEMON);
|
openlog ("nscd", LOG_CONS | LOG_ODELAY, LOG_DAEMON);
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue