From bafdc304b02fdc3e545015be7deb9089e83d0101 Mon Sep 17 00:00:00 2001 From: Brian Somers Date: Sat, 24 Nov 2001 10:43:53 +0000 Subject: [PATCH] Allow an ``at now'' specification. PR: 32242 Submitted by: Alan E MFC after: 3 weeks --- usr.bin/at/parsetime.c | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/usr.bin/at/parsetime.c b/usr.bin/at/parsetime.c index d4e8a40b8cc8..d4797e72d170 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);