projects
/
oweals
/
busybox.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
5ffdd1d
)
ntpd: set G.last_script_run even if script isn't configured
author
Denys Vlasenko
<vda.linux@googlemail.com>
Wed, 22 May 2013 16:18:51 +0000
(18:18 +0200)
committer
Denys Vlasenko
<vda.linux@googlemail.com>
Wed, 22 May 2013 16:18:51 +0000
(18:18 +0200)
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
networking/ntpd.c
patch
|
blob
|
history
diff --git
a/networking/ntpd.c
b/networking/ntpd.c
index bff2c0d4cb28722f308eebaa8824b45ff134b9dc..27e2e9f531a9f44f59131849cdc58e4220f9af90 100644
(file)
--- 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