(main): Don't ignore result of chdir call.

This commit is contained in:
Ulrich Drepper 2005-07-19 15:30:46 +00:00
parent 0c1a4a1995
commit be686f1876

View File

@ -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);