diff options
author | Ted Hess <thess@kitschensync.net> | 2014-08-13 17:06:00 -0400 |
---|---|---|
committer | Ted Hess <thess@kitschensync.net> | 2014-08-13 17:06:00 -0400 |
commit | c839c2119b0dc50e3c9ebb1da6641dc6aaafe058 (patch) | |
tree | 3a681f678594f18e9ffa70bbf6e151804ea38e40 /net/ntpclient/patches/100-daemon.patch | |
parent | ca7ddc5abc530ab53e5de167455fb9adc687a302 (diff) |
ntpclient: Import from oldpackages, update version, copyright and license info, add pkg maintainer.
Signed-off-by: Ted Hess <thess@kitschensync.net>
Diffstat (limited to 'net/ntpclient/patches/100-daemon.patch')
-rw-r--r-- | net/ntpclient/patches/100-daemon.patch | 22 |
1 files changed, 22 insertions, 0 deletions
diff --git a/net/ntpclient/patches/100-daemon.patch b/net/ntpclient/patches/100-daemon.patch new file mode 100644 index 000000000..aa35f9630 --- /dev/null +++ b/net/ntpclient/patches/100-daemon.patch @@ -0,0 +1,22 @@ +--- a/ntpclient.c ++++ b/ntpclient.c +@@ -611,7 +611,7 @@ int main(int argc, char *argv[]) { + ntpc.cross_check=1; + + for (;;) { +- c = getopt( argc, argv, "c:" DEBUG_OPTION "f:g:h:i:lp:q:" REPLAY_OPTION "st"); ++ c = getopt( argc, argv, "c:" DEBUG_OPTION "f:g:h:i:lp:q:" REPLAY_OPTION "stD"); + if (c == EOF) break; + switch (c) { + case 'c': +@@ -660,6 +660,10 @@ int main(int argc, char *argv[]) { + (ntpc.cross_check)=0; + break; + ++ case 'D': ++ daemon(0, 0); ++ break; ++ + default: + usage(argv[0]); + exit(1); |