diff options
author | bug1 <bug1@69ca8d6d-28ef-0310-b511-8ec308f3f277> | 2003-09-02 02:36:18 +0000 |
---|---|---|
committer | bug1 <bug1@69ca8d6d-28ef-0310-b511-8ec308f3f277> | 2003-09-02 02:36:18 +0000 |
commit | d7cb97b8bf8945b6f04bcccbb9be72d638158321 (patch) | |
tree | d2ff4fef7b9192de63761935103699569ecbb2ee /miscutils/crontab.c | |
parent | 253ff43f62644ee79597eed14b49dcf291f198a1 (diff) | |
download | busybox-w32-d7cb97b8bf8945b6f04bcccbb9be72d638158321.tar.gz busybox-w32-d7cb97b8bf8945b6f04bcccbb9be72d638158321.tar.bz2 busybox-w32-d7cb97b8bf8945b6f04bcccbb9be72d638158321.zip |
move all "-/bin/sh" "/bin/sh" and "sh" to libbb/messages.c file as one
constant.
Vodz last_patch_107
git-svn-id: svn://busybox.net/trunk/busybox@7365 69ca8d6d-28ef-0310-b511-8ec308f3f277
Diffstat (limited to 'miscutils/crontab.c')
-rw-r--r-- | miscutils/crontab.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/miscutils/crontab.c b/miscutils/crontab.c index 6b9446464..6c4da95fe 100644 --- a/miscutils/crontab.c +++ b/miscutils/crontab.c | |||
@@ -320,7 +320,7 @@ EditFile(const char *user, const char *file) | |||
320 | ptr = PATH_VI; | 320 | ptr = PATH_VI; |
321 | 321 | ||
322 | snprintf(visual, sizeof(visual), "%s %s", ptr, file); | 322 | snprintf(visual, sizeof(visual), "%s %s", ptr, file); |
323 | execl("/bin/sh", "/bin/sh", "-c", visual, NULL); | 323 | execl(DEFAULT_SHELL, DEFAULT_SHELL, "-c", visual, NULL); |
324 | perror("exec"); | 324 | perror("exec"); |
325 | exit(0); | 325 | exit(0); |
326 | } | 326 | } |
@@ -360,7 +360,7 @@ ChangeUser(const char *user, short dochdir) | |||
360 | } | 360 | } |
361 | setenv("USER", pas->pw_name, 1); | 361 | setenv("USER", pas->pw_name, 1); |
362 | setenv("HOME", pas->pw_dir, 1); | 362 | setenv("HOME", pas->pw_dir, 1); |
363 | setenv("SHELL", "/bin/sh", 1); | 363 | setenv("SHELL", DEFAULT_SHELL, 1); |
364 | 364 | ||
365 | /* | 365 | /* |
366 | * Change running state to the user in question | 366 | * Change running state to the user in question |