From 0b3b65fa91214d112581cfdd28526604b1399ece Mon Sep 17 00:00:00 2001 From: Denys Vlasenko Date: Sun, 9 Jul 2017 00:00:39 +0200 Subject: crond: move misplaced comment Signed-off-by: Denys Vlasenko --- miscutils/crond.c | 26 +++++++++++++------------- 1 file changed, 13 insertions(+), 13 deletions(-) (limited to 'miscutils') diff --git a/miscutils/crond.c b/miscutils/crond.c index 8a399446c..a472c9b23 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; -- cgit v1.2.3