diff options
author | Denys Vlasenko <vda.linux@googlemail.com> | 2013-05-22 18:18:51 +0200 |
---|---|---|
committer | Denys Vlasenko <vda.linux@googlemail.com> | 2013-05-22 18:18:51 +0200 |
commit | 07c5987498bcd3ba276cc9877921467893ada6f0 (patch) | |
tree | 8698c829f3eb5f59ae831e41d5ab912a7fe8d7be | |
parent | 5ffdd1d981d4faf751ed79f31896a62e7c0db0a0 (diff) | |
download | busybox-w32-07c5987498bcd3ba276cc9877921467893ada6f0.tar.gz busybox-w32-07c5987498bcd3ba276cc9877921467893ada6f0.tar.bz2 busybox-w32-07c5987498bcd3ba276cc9877921467893ada6f0.zip |
ntpd: set G.last_script_run even if script isn't configured
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
-rw-r--r-- | networking/ntpd.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/networking/ntpd.c b/networking/ntpd.c index bff2c0d4c..27e2e9f53 100644 --- a/networking/ntpd.c +++ b/networking/ntpd.c | |||
@@ -838,6 +838,8 @@ static void run_script(const char *action, double offset) | |||
838 | char *argv[3]; | 838 | char *argv[3]; |
839 | char *env1, *env2, *env3, *env4; | 839 | char *env1, *env2, *env3, *env4; |
840 | 840 | ||
841 | G.last_script_run = G.cur_time; | ||
842 | |||
841 | if (!G.script_name) | 843 | if (!G.script_name) |
842 | return; | 844 | return; |
843 | 845 | ||
@@ -874,8 +876,6 @@ static void run_script(const char *action, double offset) | |||
874 | free(env2); | 876 | free(env2); |
875 | free(env3); | 877 | free(env3); |
876 | free(env4); | 878 | free(env4); |
877 | |||
878 | G.last_script_run = G.cur_time; | ||
879 | } | 879 | } |
880 | 880 | ||
881 | static NOINLINE void | 881 | static NOINLINE void |