Re: "at " doesn't work as documented

2019-02-15 Thread Todd C . Miller
On Sat, 16 Feb 2019 01:48:11 +0100, Christian Weisgerber wrote: > I think tod() already has the required logic, but it doesn't handle > the case where the time is only past by minutes. Even better. OK millert@ - todd

Re: "at " doesn't work as documented

2019-02-15 Thread Theo de Raadt
That looks like the correct fix. ok deraadt > > The manual is correct. Below is one way to fix this, though the > > logic probably belongs in tod() itself. > > I think tod() already has the required logic, but it doesn't handle > the case where the time is only past by minutes. > > Index:

Re: "at " doesn't work as documented

2019-02-15 Thread Christian Weisgerber
Todd C. Miller: > The manual is correct. Below is one way to fix this, though the > logic probably belongs in tod() itself. I think tod() already has the required logic, but it doesn't handle the case where the time is only past by minutes. Index: parsetime.c

Re: "at " doesn't work as documented

2019-02-15 Thread Todd C . Miller
On Fri, 15 Feb 2019 22:36:08 +0100, Christian Weisgerber wrote: > The at(1) man page says: > at allows some moderately complex timespec specifications. It accepts > times of the form HHMM or HH:MM to run a job at a specific time of day. > (If that time is already past, the next day

"at " doesn't work as documented

2019-02-15 Thread Christian Weisgerber
OpenBSD 6.4-current (GENERIC.MP) #2: Thu Feb 14 21:19:17 CET 2019 na...@ariolc.mips.inka.de:/sys/arch/amd64/compile/GENERIC.MP The at(1) man page says: at allows some moderately complex timespec specifications. It accepts times of the form HHMM or HH:MM to run a job at a specific