[prev in list] [next in list] [prev in thread] [next in thread]
List: busybox-cvs
Subject: [git commit] ntpd: set G.last_script_run even if script isn't configured
From: Denys Vlasenko <vda.linux () googlemail ! com>
Date: 2013-05-22 16:18:51
Message-ID: 20130522162034.614A69A49D () busybox ! osuosl ! org
[Download RAW message or body]
commit: http://git.busybox.net/busybox/commit/?id=07c5987498bcd3ba276cc9877921467893ada6f0
branch: http://git.busybox.net/busybox/commit/?id=refs/heads/master
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
---
networking/ntpd.c | 4 ++--
1 files changed, 2 insertions(+), 2 deletions(-)
diff --git a/networking/ntpd.c b/networking/ntpd.c
index bff2c0d..27e2e9f 100644
--- a/networking/ntpd.c
+++ b/networking/ntpd.c
@@ -838,6 +838,8 @@ static void run_script(const char *action, double offset)
char *argv[3];
char *env1, *env2, *env3, *env4;
+ G.last_script_run = G.cur_time;
+
if (!G.script_name)
return;
@@ -874,8 +876,6 @@ static void run_script(const char *action, double offset)
free(env2);
free(env3);
free(env4);
-
- G.last_script_run = G.cur_time;
}
static NOINLINE void
_______________________________________________
busybox-cvs mailing list
busybox-cvs@busybox.net
http://lists.busybox.net/mailman/listinfo/busybox-cvs
[prev in list] [next in list] [prev in thread] [next in thread]
Configure |
About |
News |
Add a list |
Sponsored by KoreLogic