Skip to content

Commit cbbfbef

Browse files
authored
fix: ntpdate-wrapper binary path (#16210)
1 parent 5121c57 commit cbbfbef

3 files changed

Lines changed: 17 additions & 14 deletions

File tree

SPECS/ntp/ntp.signatures.json

Lines changed: 11 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -1,13 +1,13 @@
11
{
2-
"Signatures": {
3-
"LICENSE.PTR": "22591c393c8f9d309234493b98ccddcf246cf5f843358b2bdb62d84e59780e02",
4-
"ntp.step-tickers": "8b4bc72cc4a0af1e855f8836de5ceaa15b29620b7d3147e8f05c73bac773bee8",
5-
"ntp.sysconfig": "f2a0ab20767f2c1975cd56cc2b013070fc5b0fbc6a619a3fad05c16d5d0bd6ba",
6-
"ntpd.service": "10636ab4e5d799c3071a08a961b2ed668309f70ebae9f46bf23f4079be60d431",
7-
"ntpdate.service": "a75376fde5a9d0eb0237ef4a84bac3cdef4c6ecadeee0eb41c6c124cd857fa46",
8-
"ntpdate.sysconfig": "7ce7b151ea02332800688c8cb0bafefd246c9c0037491686fd833b3baaeff419",
9-
"ntpdate.wrapper": "f63c7828bd29379b88db578658528bbb7ff915cd0e56cf1fee0a77ff59c35f09",
10-
"ntpstat-master.zip": "383871e655c38fa853a4d5935d4be4aba08842e73e51ed3daf824e6a333dadc6",
11-
"ntp-4.2.8p17.tar.gz": "103dd272e6a66c5b8df07dce5e9a02555fcd6f1397bdfb782237328e89d3a866"
12-
}
2+
"Signatures": {
3+
"LICENSE.PTR": "22591c393c8f9d309234493b98ccddcf246cf5f843358b2bdb62d84e59780e02",
4+
"ntp-4.2.8p17.tar.gz": "103dd272e6a66c5b8df07dce5e9a02555fcd6f1397bdfb782237328e89d3a866",
5+
"ntp.step-tickers": "8b4bc72cc4a0af1e855f8836de5ceaa15b29620b7d3147e8f05c73bac773bee8",
6+
"ntp.sysconfig": "f2a0ab20767f2c1975cd56cc2b013070fc5b0fbc6a619a3fad05c16d5d0bd6ba",
7+
"ntpd.service": "10636ab4e5d799c3071a08a961b2ed668309f70ebae9f46bf23f4079be60d431",
8+
"ntpdate.service": "a75376fde5a9d0eb0237ef4a84bac3cdef4c6ecadeee0eb41c6c124cd857fa46",
9+
"ntpdate.sysconfig": "7ce7b151ea02332800688c8cb0bafefd246c9c0037491686fd833b3baaeff419",
10+
"ntpdate.wrapper": "247ae15d8f8c0332cb7850c041969e649b8a557642c1e811ec48b4c89bd20597",
11+
"ntpstat-master.zip": "383871e655c38fa853a4d5935d4be4aba08842e73e51ed3daf824e6a333dadc6"
12+
}
1313
}

SPECS/ntp/ntp.spec

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
Summary: Network Time Protocol reference implementation
22
Name: ntp
33
Version: 4.2.8p17
4-
Release: 1%{?dist}
4+
Release: 2%{?dist}
55
License: BSD AND GPLv2+ AND LGPLv2+ AND MIT AND OpenLDAP AND Public Domain
66
Vendor: Microsoft Corporation
77
Distribution: Azure Linux
@@ -197,6 +197,9 @@ fi
197197
%{_mandir}/man8/ntpstat.8*
198198

199199
%changelog
200+
* Tue Mar 17 2026 Sudipta Pandit <sudpandit@microsoft.com> - 4.2.8p17-2
201+
- Fix ntpdate-wrapper to use /usr/bin/ntpdate
202+
200203
* Wed Jan 31 2024 Karim Eldegwy <karimeldegwy@microsoft.com> - 4.2.8p17-1
201204
- Auto-upgrade to 4.2.8p17 - 3.0 - Upgrade
202205
- Remove not applicable patch

SPECS/ntp/ntpdate.wrapper

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ ntpconf=/etc/ntp.conf
44
ntpstep=/etc/ntp/step-tickers
55

66
[ "$EUID" != "0" ] && exit 4
7-
[ -x /usr/sbin/ntpdate ] || exit 5
7+
[ -x /usr/bin/ntpdate ] || exit 5
88
[ -f /etc/sysconfig/ntpdate ] || exit 6
99
. /etc/sysconfig/ntpdate
1010

@@ -22,7 +22,7 @@ if ! echo "$tickers" | grep -qi '[a-z0-9]'; then
2222
exit 6
2323
fi
2424

25-
/usr/sbin/ntpdate -s -b $OPTIONS $tickers &> /dev/null
25+
/usr/bin/ntpdate -s -b $OPTIONS $tickers &> /dev/null
2626
RETVAL=$?
2727

2828
[ $RETVAL -eq 0 ] && [ "$SYNC_HWCLOCK" = "yes" ] && /sbin/hwclock --systohc

0 commit comments

Comments
 (0)