aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDenys Vlasenko <vda.linux@googlemail.com>2017-07-09 00:00:39 +0200
committerDenys Vlasenko <vda.linux@googlemail.com>2017-07-09 00:00:39 +0200
commit0b3b65fa91214d112581cfdd28526604b1399ece (patch)
tree79c821d6d0d0ee4cc98e39cada7deebf58ea99f6
parent75fbea3879b251ef4a66c6da23a6c0e3a706c016 (diff)
downloadbusybox-w32-0b3b65fa91214d112581cfdd28526604b1399ece.tar.gz
busybox-w32-0b3b65fa91214d112581cfdd28526604b1399ece.tar.bz2
busybox-w32-0b3b65fa91214d112581cfdd28526604b1399ece.zip
crond: move misplaced comment
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
-rw-r--r--miscutils/crond.c26
1 files changed, 13 insertions, 13 deletions
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)
471 shell = xstrdup(&tokens[0][6]); 471 shell = xstrdup(&tokens[0][6]);
472 continue; 472 continue;
473 } 473 }
474//TODO: handle HOME= too? "man crontab" says:
475//name = value
476//
477//where the spaces around the equal-sign (=) are optional, and any subsequent
478//non-leading spaces in value will be part of the value assigned to name.
479//The value string may be placed in quotes (single or double, but matching)
480//to preserve leading or trailing blanks.
481//
482//Several environment variables are set up automatically by the cron(8) daemon.
483//SHELL is set to /bin/sh, and LOGNAME and HOME are set from the /etc/passwd
484//line of the crontab's owner. HOME and SHELL may be overridden by settings
485//in the crontab; LOGNAME may not.
486
474#if ENABLE_FEATURE_CROND_SPECIAL_TIMES 487#if ENABLE_FEATURE_CROND_SPECIAL_TIMES
475 if (tokens[0][0] == '@') { 488 if (tokens[0][0] == '@') {
476 /* 489 /*
@@ -524,19 +537,6 @@ static void load_crontab(const char *fileName)
524 continue; /* bad line (unrecognized '@foo') */ 537 continue; /* bad line (unrecognized '@foo') */
525 } 538 }
526#endif 539#endif
527//TODO: handle HOME= too? "man crontab" says:
528//name = value
529//
530//where the spaces around the equal-sign (=) are optional, and any subsequent
531//non-leading spaces in value will be part of the value assigned to name.
532//The value string may be placed in quotes (single or double, but matching)
533//to preserve leading or trailing blanks.
534//
535//Several environment variables are set up automatically by the cron(8) daemon.
536//SHELL is set to /bin/sh, and LOGNAME and HOME are set from the /etc/passwd
537//line of the crontab's owner. HOME and SHELL may be overridden by settings
538//in the crontab; LOGNAME may not.
539
540 /* check if a minimum of tokens is specified */ 540 /* check if a minimum of tokens is specified */
541 if (n < 6) 541 if (n < 6)
542 continue; 542 continue;