freebsd-nq/usr.sbin/cron
Oleksandr Tymoshenko c69de02065 cron: consume blanks in system crontabs before options
On system crontabs, multiple blanks are not being consumed after reading the
username. This change adds blank consumption before parsing any -[qn] options.
Without this change, an entry like:

  * * * * * username  -n true  # Two spaces between username and option.

will fail, as the shell will try to execute (' -n true'), while an entry like:

  * * * * * username -n true   # One space between username and option.

works as expected (executes 'true').

For user crontabs, this is not an issue as the preceding (day of week
or @shortcut) processing consumes any leading whitespace.

PR:		253699
Submitted by:	Eric A. Borisch <eborisch@gmail.com>
MFC after:	1 week

(cherry picked from commit 37cd6c20db)
2021-06-05 15:49:45 -07:00
..
cron Replace literal uses of /usr/local in C sources with _PATH_LOCALBASE 2020-10-27 11:29:11 +00:00
crontab cron: respect PATH from login.conf 2020-03-30 03:26:52 +00:00
doc
lib cron: consume blanks in system crontabs before options 2021-06-05 15:49:45 -07:00
Makefile
Makefile.inc