aboutsummaryrefslogtreecommitdiff
path: root/miscutils/crontab.c
diff options
context:
space:
mode:
Diffstat (limited to 'miscutils/crontab.c')
-rw-r--r--miscutils/crontab.c5
1 files changed, 3 insertions, 2 deletions
diff --git a/miscutils/crontab.c b/miscutils/crontab.c
index 804cb57f2..4787fa08f 100644
--- a/miscutils/crontab.c
+++ b/miscutils/crontab.c
@@ -99,8 +99,9 @@ int crontab_main(int argc UNUSED_PARAM, char **argv)
99 OPT_ler = OPT_l + OPT_e + OPT_r, 99 OPT_ler = OPT_l + OPT_e + OPT_r,
100 }; 100 };
101 101
102 opt_complementary = "?1:dr"; /* max one argument; -d implies -r */ 102 opt_ler = getopt32(argv, "^" "u:c:lerd" "\0" "?1:dr"/*max one arg; -d implies -r*/,
103 opt_ler = getopt32(argv, "u:c:lerd", &user_name, &crontab_dir); 103 &user_name, &crontab_dir
104 );
104 argv += optind; 105 argv += optind;
105 106
106 if (sanitize_env_if_suid()) { /* Clears dangerous stuff, sets PATH */ 107 if (sanitize_env_if_suid()) { /* Clears dangerous stuff, sets PATH */