bk: 5a95d3cbl89nGuRPtC0JNV24ih-Dlw
* Provide dump_restricts() for debugging. HStenn.
* Use consistent 4th arg type for [gs]etsockopt. JPerlinger.
* Some tests might need LIBM. HStenn.
+* update-leap: Allow -h/--help early. HStenn.
---
(4.2.8p10) 2017/03/21 Released by Harlan Stenn <stenn@ntp.org>
'e:60',
'F',
'f=s',
- 'h',
+ 'h|help',
'i:10',
'L=s',
'l=s',
# Take some security precautions
close STDIN;
-if ($< != $RUN_UID) {
- log_fatal(LOG_ERR, 'User ' . getpwuid($<) . " (UID $<) tried to run $PROG");
-}
-
-chdir $RUN_DIR || log_fatal("Failed to change dir to $RUN_DIR");
-
# Show help
if (defined $opt{h}) {
show_help();
exit 0;
}
+if ($< != $RUN_UID) {
+ log_fatal(LOG_ERR, 'User ' . getpwuid($<) . " (UID $<) tried to run $PROG");
+}
+
+chdir $RUN_DIR || log_fatal("Failed to change dir to $RUN_DIR");
+
# Parse ntp.conf for path to leapfile if not set by user
if (! $LEAPFILE) {