Openwrt/package/utils/busybox/patches/600-allow-ntpd-non-root.patch
Daniel Golle 2d34355e16 busybox: allow ntpd to run as non-root ntpd user
Signed-off-by: Daniel Golle <daniel@makrotopia.org>
2020-10-25 13:01:35 +00:00

13 lines
292 B
Diff

--- a/networking/ntpd.c
+++ b/networking/ntpd.c
@@ -2414,9 +2414,6 @@ static NOINLINE void ntp_init(char **arg
srand(getpid());
- if (getuid())
- bb_error_msg_and_die(bb_msg_you_must_be_root);
-
/* Set some globals */
G.discipline_jitter = G_precision_sec;
G.stratum = MAXSTRAT;