aboutsummaryrefslogtreecommitdiff
path: root/src/rc/runscript.c
diff options
context:
space:
mode:
authorRoy Marples <roy@marples.name>2009-04-30 19:56:43 +0100
committerRoy Marples <roy@marples.name>2009-04-30 19:56:43 +0100
commit3d0e5175d845c2386295cf454f9ee1939265fe59 (patch)
treeab5fd50b99e05e3aaca755aaffaa8b0c0e52ba5a /src/rc/runscript.c
parent21e45e895ce3ca586e0c5fd89a68b84c01d270de (diff)
Avoid more gcc warning about not checking return values ...
Diffstat (limited to 'src/rc/runscript.c')
-rw-r--r--src/rc/runscript.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/rc/runscript.c b/src/rc/runscript.c
index 5dab6763..58067a71 100644
--- a/src/rc/runscript.c
+++ b/src/rc/runscript.c
@@ -1106,7 +1106,8 @@ runscript(int argc, char **argv)
usage(EXIT_FAILURE);
/* Change dir to / to ensure all init scripts don't use stuff in pwd */
- chdir("/");
+ if (chdir("/") == -1)
+ eerror("chdir: %s", strerror(errno));
if ((runlevel = xstrdup(getenv("RC_RUNLEVEL"))) == NULL) {
env_filter();