diff options
author | brian <brian@FreeBSD.org> | 2001-11-24 10:43:53 +0000 |
---|---|---|
committer | brian <brian@FreeBSD.org> | 2001-11-24 10:43:53 +0000 |
commit | 28c70781864d97689d9fa0913ee65d2aefb35b47 (patch) | |
tree | 82766dfe2993da097ba6b79bca7ff633f5477a26 /usr.bin/at/parsetime.c | |
parent | 194b963c4ddbdb6e85effb3c87954a5902305294 (diff) | |
download | FreeBSD-src-28c70781864d97689d9fa0913ee65d2aefb35b47.zip FreeBSD-src-28c70781864d97689d9fa0913ee65d2aefb35b47.tar.gz |
Allow an ``at now'' specification.
PR: 32242
Submitted by: Alan E <alane@geeksrus.net>
MFC after: 3 weeks
Diffstat (limited to 'usr.bin/at/parsetime.c')
-rw-r--r-- | usr.bin/at/parsetime.c | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/usr.bin/at/parsetime.c b/usr.bin/at/parsetime.c index d4e8a40..d4797e7 100644 --- a/usr.bin/at/parsetime.c +++ b/usr.bin/at/parsetime.c @@ -579,7 +579,11 @@ parsetime(int argc, char **argv) init_scanner(argc-optind, argv+optind); switch (token()) { - case NOW: /* now is optional prefix for PLUS tree */ + case NOW: + if (scc < 1) { + return nowtimer; + } + /* now is optional prefix for PLUS tree */ expect(PLUS); case PLUS: plus(&runtime); |