diff options
author | Denys Vlasenko | 2017-07-09 00:00:39 +0200 |
---|---|---|
committer | Denys Vlasenko | 2017-07-09 00:00:39 +0200 |
commit | 0b3b65fa91214d112581cfdd28526604b1399ece (patch) | |
tree | 79c821d6d0d0ee4cc98e39cada7deebf58ea99f6 /miscutils | |
parent | 75fbea3879b251ef4a66c6da23a6c0e3a706c016 (diff) | |
download | busybox-0b3b65fa91214d112581cfdd28526604b1399ece.zip busybox-0b3b65fa91214d112581cfdd28526604b1399ece.tar.gz |
crond: move misplaced comment
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
Diffstat (limited to 'miscutils')
-rw-r--r-- | miscutils/crond.c | 26 |
1 files changed, 13 insertions, 13 deletions
diff --git a/miscutils/crond.c b/miscutils/crond.c index 8a39944..a472c9b 100644 --- a/miscutils/crond.c +++ b/miscutils/crond.c @@ -471,6 +471,19 @@ static void load_crontab(const char *fileName) shell = xstrdup(&tokens[0][6]); continue; } +//TODO: handle HOME= too? "man crontab" says: +//name = value +// +//where the spaces around the equal-sign (=) are optional, and any subsequent +//non-leading spaces in value will be part of the value assigned to name. +//The value string may be placed in quotes (single or double, but matching) +//to preserve leading or trailing blanks. +// +//Several environment variables are set up automatically by the cron(8) daemon. +//SHELL is set to /bin/sh, and LOGNAME and HOME are set from the /etc/passwd +//line of the crontab's owner. HOME and SHELL may be overridden by settings +//in the crontab; LOGNAME may not. + #if ENABLE_FEATURE_CROND_SPECIAL_TIMES if (tokens[0][0] == '@') { /* @@ -524,19 +537,6 @@ static void load_crontab(const char *fileName) continue; /* bad line (unrecognized '@foo') */ } #endif -//TODO: handle HOME= too? "man crontab" says: -//name = value -// -//where the spaces around the equal-sign (=) are optional, and any subsequent -//non-leading spaces in value will be part of the value assigned to name. -//The value string may be placed in quotes (single or double, but matching) -//to preserve leading or trailing blanks. -// -//Several environment variables are set up automatically by the cron(8) daemon. -//SHELL is set to /bin/sh, and LOGNAME and HOME are set from the /etc/passwd -//line of the crontab's owner. HOME and SHELL may be overridden by settings -//in the crontab; LOGNAME may not. - /* check if a minimum of tokens is specified */ if (n < 6) continue; |