projects
/
external
/
glibc.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
0c1a4a1
)
(main): Don't ignore result of chdir call.
author
Ulrich Drepper
<drepper@redhat.com>
Tue, 19 Jul 2005 15:30:46 +0000
(15:30 +0000)
committer
Ulrich Drepper
<drepper@redhat.com>
Tue, 19 Jul 2005 15:30:46 +0000
(15:30 +0000)
nscd/nscd.c
patch
|
blob
|
history
diff --git
a/nscd/nscd.c
b/nscd/nscd.c
index
7dd9cb7
..
a7aa964
100644
(file)
--- 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);