[Git][NTPsec/ntpsec][master] Don't set clock in ntpdate debug mode
Hal Murray (@hal.murray)
gitlab at mg.gitlab.com
Sat May 25 22:44:22 UTC 2024
Hal Murray pushed to branch master at NTPsec / ntpsec
Commits:
0f4e171b by Joachim Kross at 2024-05-25T18:58:43+00:00
Don't set clock in ntpdate debug mode
In line with ntpdate classic behavior.
Plus add -d option to help text.
- - - - -
1 changed file:
- attic/ntpdate
Changes:
=====================================
attic/ntpdate
=====================================
@@ -52,6 +52,7 @@ print_help() {
echo " -a N Specify key number for authentication"
echo " -b Force time step"
echo " -B Force time slew"
+ echo " -d Enable debugging mode (implies -q)"
echo " -I IP Bind to specific Source IP for requests"
echo " -k FILE Specify key file"
echo " -q Query only"
@@ -74,7 +75,7 @@ do
a) PASSTHROUGH="$PASSTHROUGH -a $OPTARG";;
b) ADJUST="$ADJUST -S";;
B) ADJUST="$ADJUST -s";;
- d) PASSTHROUGH="$PASSTHROUGH -d";;
+ d) PASSTHROUGH="$PASSTHROUGH -d"; setclock=no;;
e) echo "ntpdate: -e is no longer supported." >&2;;
h) print_help; exit;;
I) PASSTHROUGH="$PASSTHROUGH -I $OPTARG";;
View it on GitLab: https://gitlab.com/NTPsec/ntpsec/-/commit/0f4e171b140833c5239a0ae727359d4bec5746c6
--
View it on GitLab: https://gitlab.com/NTPsec/ntpsec/-/commit/0f4e171b140833c5239a0ae727359d4bec5746c6
You're receiving this email because of your account on gitlab.com.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.ntpsec.org/pipermail/vc/attachments/20240525/1b34a47a/attachment-0001.htm>
More information about the vc
mailing list