summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorZbigniew Jędrzejewski-Szmek <zbyszek@in.waw.pl>2019-07-16 12:22:37 +0200
committerZbigniew Jędrzejewski-Szmek <zbyszek@in.waw.pl>2019-07-16 14:29:04 +0200
commit7842c5f2e2c7c4762e478aa70beadcd6ab6c31dd (patch)
tree521e6406efb3c51621a22eea70b89782963d900f /src
parent860f2be059da4aef81a709e717d9183487e13c8d (diff)
downloadsystemd-7842c5f2e2c7c4762e478aa70beadcd6ab6c31dd.tar.gz
run: move comment to appropriate place
Diffstat (limited to 'src')
-rw-r--r--src/run/run.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/run/run.c b/src/run/run.c
index c11b7f57ff..68a3750390 100644
--- a/src/run/run.c
+++ b/src/run/run.c
@@ -383,11 +383,11 @@ static int parse_argv(int argc, char *argv[]) {
case ARG_ON_CALENDAR: {
_cleanup_(calendar_spec_freep) CalendarSpec *cs = NULL;
- /* Let's make sure the given calendar event is not in the past */
r = calendar_spec_from_string(optarg, &cs);
if (r < 0)
return log_error_errno(r, "Failed to parse calendar event specification: %m");
+ /* Let's make sure the given calendar event is not in the past */
r = calendar_spec_next_usec(cs, now(CLOCK_REALTIME), NULL);
if (r == -ENOENT)
/* The calendar event is in the past — let's warn about this, but install it