Ignore:
Timestamp:
Jan 1, 2014, 12:47:38 AM (7 years ago)
Author:
Bruno Cornec
Message:
  • Update mindi-busybox to 1.21.1
File:
1 edited

Legend:

Unmodified
Added
Removed
  • branches/3.2/mindi-busybox/miscutils/crontab.c

    r2725 r3232  
    1111 */
    1212
     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
    1323#include "libbb.h"
    1424
     
    2131{
    2232    const char *ptr;
    23     int pid = xvfork();
    24 
     33    pid_t pid;
     34
     35    pid = xvfork();
    2536    if (pid) { /* parent */
    2637        wait4pid(pid);
     
    3142    /* initgroups, setgid, setuid */
    3243    change_identity(pas);
    33     setup_environment(DEFAULT_SHELL,
     44    setup_environment(pas->pw_shell,
    3445            SETUP_ENV_CHANGEENV | SETUP_ENV_TO_TMP,
    3546            pas);
     
    4253
    4354    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);
    4556}
    4657
Note: See TracChangeset for help on using the changeset viewer.