diff options
author | Ulrich Drepper <drepper@redhat.com> | 2005-07-19 15:30:46 +0000 |
---|---|---|
committer | Ulrich Drepper <drepper@redhat.com> | 2005-07-19 15:30:46 +0000 |
commit | be686f1876c5ebbf95801b270522066bfebb0905 (patch) | |
tree | 9dd2b256b396bd5dfec80cda92942312195d7090 /nscd/nscd.c | |
parent | 0c1a4a1995810a4ea3588f9a897045f1a0f59e7c (diff) | |
download | glibc-be686f1876c5ebbf95801b270522066bfebb0905.tar.gz glibc-be686f1876c5ebbf95801b270522066bfebb0905.tar.xz glibc-be686f1876c5ebbf95801b270522066bfebb0905.zip |
(main): Don't ignore result of chdir call.
Diffstat (limited to 'nscd/nscd.c')
-rw-r--r-- | nscd/nscd.c | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/nscd/nscd.c b/nscd/nscd.c index 7dd9cb7722..a7aa964804 100644 --- a/nscd/nscd.c +++ b/nscd/nscd.c @@ -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); |