aboutsummaryrefslogtreecommitdiff
path: root/miscutils/crond.c
diff options
context:
space:
mode:
authoraldot <aldot@69ca8d6d-28ef-0310-b511-8ec308f3f277>2006-04-12 18:39:58 +0000
committeraldot <aldot@69ca8d6d-28ef-0310-b511-8ec308f3f277>2006-04-12 18:39:58 +0000
commit173133414753125e4a5ddf160cd22807a703bd38 (patch)
treec7e395cfe1eafcd601bc16e0231fc30f8789e4d9 /miscutils/crond.c
parent04f8875fd522ea63205b3e223d56979117245d1f (diff)
downloadbusybox-w32-173133414753125e4a5ddf160cd22807a703bd38.tar.gz
busybox-w32-173133414753125e4a5ddf160cd22807a703bd38.tar.bz2
busybox-w32-173133414753125e4a5ddf160cd22807a703bd38.zip
- patch from Denis Vlasenko to add and use bb_xchdir()
git-svn-id: svn://busybox.net/trunk/busybox@14837 69ca8d6d-28ef-0310-b511-8ec308f3f277
Diffstat (limited to 'miscutils/crond.c')
-rw-r--r--miscutils/crond.c4
1 files changed, 1 insertions, 3 deletions
diff --git a/miscutils/crond.c b/miscutils/crond.c
index 06b8769fa..4d479bc0d 100644
--- a/miscutils/crond.c
+++ b/miscutils/crond.c
@@ -197,9 +197,7 @@ int crond_main(int ac, char **av)
197 * change directory 197 * change directory
198 */ 198 */
199 199
200 if (chdir(CDir) != 0) { 200 bb_xchdir(CDir);
201 bb_perror_msg_and_die("%s", CDir);
202 }
203 signal(SIGHUP, SIG_IGN); /* hmm.. but, if kill -HUP original 201 signal(SIGHUP, SIG_IGN); /* hmm.. but, if kill -HUP original
204 * version - his died. ;( 202 * version - his died. ;(
205 */ 203 */