Changeset 3232 in MondoRescue for branches/3.2/mindi-busybox/miscutils/crontab.c
- Timestamp:
- Jan 1, 2014, 12:47:38 AM (10 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/3.2/mindi-busybox/miscutils/crontab.c
r2725 r3232 11 11 */ 12 12 13 //usage:#define crontab_trivial_usage 14 //usage: "[-c DIR] [-u USER] [-ler]|[FILE]" 15 //usage:#define crontab_full_usage "\n\n" 16 //usage: " -c Crontab directory" 17 //usage: "\n -u User" 18 //usage: "\n -l List crontab" 19 //usage: "\n -e Edit crontab" 20 //usage: "\n -r Delete crontab" 21 //usage: "\n FILE Replace crontab by FILE ('-': stdin)" 22 13 23 #include "libbb.h" 14 24 … … 21 31 { 22 32 const char *ptr; 23 int pid = xvfork(); 24 33 pid_t pid; 34 35 pid = xvfork(); 25 36 if (pid) { /* parent */ 26 37 wait4pid(pid); … … 31 42 /* initgroups, setgid, setuid */ 32 43 change_identity(pas); 33 setup_environment( DEFAULT_SHELL,44 setup_environment(pas->pw_shell, 34 45 SETUP_ENV_CHANGEENV | SETUP_ENV_TO_TMP, 35 46 pas); … … 42 53 43 54 BB_EXECLP(ptr, ptr, file, NULL); 44 bb_perror_msg_and_die(" exec %s", ptr);55 bb_perror_msg_and_die("can't execute '%s'", ptr); 45 56 } 46 57
Note:
See TracChangeset
for help on using the changeset viewer.