Mageia Bugzilla – Attachment 10074 Details for
Bug 22850
ntp new security issue CVE-2016-1549, CVE-2018-7170, CVE-2018-718[2-5]
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Requests
|
Help
|
Log In
[x]
|
New Account
|
Forgot Password
[patch]
patch removing ntpdate in favor of ntpd equivalent command
drakclock_deprecatedntpdate.patch (text/plain), 621 bytes, created by
Adrien Guichard
on 2018-04-01 19:48:18 CEST
(
hide
)
Description:
patch removing ntpdate in favor of ntpd equivalent command
Filename:
MIME Type:
Creator:
Adrien Guichard
Created:
2018-04-01 19:48:18 CEST
Size:
621 bytes
patch
obsolete
>diff --git a/perl-install/standalone/drakclock b/perl-install/standalone/drakclock >index ed0ce940e..e7234c728 100755 >--- a/perl-install/standalone/drakclock >+++ b/perl-install/standalone/drakclock >@@ -129,7 +129,7 @@ $my_win->{window}->add( > $sync_ok = !system('chronyc', 'waitsync', '30', '0.1'); > system('systemctl', 'stop', "$ntpd.service") if !$sync_ok; > } else { >- $sync_ok = !system('/usr/sbin/ntpdate', $choosed_serv); >+ $sync_ok = !system('/usr/sbin/ntpd', '-gqc', '/dev/null', $choosed_serv); > system('systemctl', 'start', "$ntpd.service") if $sync_ok; > } > if ($sync_ok) {
diff --git a/perl-install/standalone/drakclock b/perl-install/standalone/drakclock index ed0ce940e..e7234c728 100755 --- a/perl-install/standalone/drakclock +++ b/perl-install/standalone/drakclock @@ -129,7 +129,7 @@ $my_win->{window}->add( $sync_ok = !system('chronyc', 'waitsync', '30', '0.1'); system('systemctl', 'stop', "$ntpd.service") if !$sync_ok; } else { - $sync_ok = !system('/usr/sbin/ntpdate', $choosed_serv); + $sync_ok = !system('/usr/sbin/ntpd', '-gqc', '/dev/null', $choosed_serv); system('systemctl', 'start', "$ntpd.service") if $sync_ok; } if ($sync_ok) {
View Attachment As Diff
View Attachment As Raw
Actions:
View
|
Diff
Attachments on
bug 22850
: 10074