Package: ntpsec-ntpdate
Version: 1.1.1+dfsg1-1
Severity: grave
Tags: patch

Hi,

since (at least) the update of ntpsec-ntpdate to 1.1.1+dfsg1-1, I see
tons of these entries in my syslog (and ifup doesn't exit anymore):

[…]
/sbin/dhclient-script: 30: /etc/dhcp/dhclient-exit-hooks.d/ntpsec-ntpdate: 
Syntax error: word unexpected (expecting "do")
DHCPDECLINE on enp0s31f6 to 255.255.255.255 port 67
DHCPDISCOVER on enp0s31f6 to 255.255.255.255 port 67 interval 3
DHCPREQUEST of 192.168.1.245 on enp0s31f6 to 255.255.255.255 port 67
DHCPOFFER of 192.168.1.245 from 192.168.1.1
DHCPACK of 192.168.1.245 from 192.168.1.1
RTNETLINK answers: File exists
mv: cannot move '/etc/resolv.conf.dhclient-new.12660' to '/etc/resolv.conf': 
Operation not permitted
/sbin/dhclient-script: 30: /etc/dhcp/dhclient-exit-hooks.d/ntpsec-ntpdate: 
Syntax error: word unexpected (expecting "do")
DHCPDECLINE on enp0s31f6 to 255.255.255.255 port 67
DHCPDISCOVER on enp0s31f6 to 255.255.255.255 port 67 interval 7
DHCPREQUEST of 192.168.1.245 on enp0s31f6 to 255.255.255.255 port 67
DHCPOFFER of 192.168.1.245 from 192.168.1.1
DHCPACK of 192.168.1.245 from 192.168.1.1
RTNETLINK answers: File exists
mv: cannot move '/etc/resolv.conf.dhclient-new.12676' to '/etc/resolv.conf': 
Operation not permitted
/sbin/dhclient-script: 30: /etc/dhcp/dhclient-exit-hooks.d/ntpsec-ntpdate: 
Syntax error: word unexpected (expecting "do")
DHCPDECLINE on enp0s31f6 to 255.255.255.255 port 67
DHCPDISCOVER on enp0s31f6 to 255.255.255.255 port 67 interval 6
DHCPREQUEST of 192.168.1.245 on enp0s31f6 to 255.255.255.255 port 67
DHCPOFFER of 192.168.1.245 from 192.168.1.1
DHCPACK of 192.168.1.245 from 192.168.1.1
RTNETLINK answers: File exists
mv: cannot move '/etc/resolv.conf.dhclient-new.12736' to '/etc/resolv.conf': 
Operation not permitted
/sbin/dhclient-script: 30: /etc/dhcp/dhclient-exit-hooks.d/ntpsec-ntpdate: 
Syntax error: word unexpected (expecting "do")
DHCPDECLINE on enp0s31f6 to 255.255.255.255 port 67
DHCPDISCOVER on enp0s31f6 to 255.255.255.255 port 67 interval 4
DHCPREQUEST of 192.168.1.245 on enp0s31f6 to 255.255.255.255 port 67
DHCPOFFER of 192.168.1.245 from 192.168.1.1
DHCPACK of 192.168.1.245 from 192.168.1.1
RTNETLINK answers: File exists
mv: cannot move '/etc/resolv.conf.dhclient-new.12753' to '/etc/resolv.conf': 
Operation not permitted
/sbin/dhclient-script: 30: /etc/dhcp/dhclient-exit-hooks.d/ntpsec-ntpdate: 
Syntax error: word unexpected (expecting "do")
DHCPDECLINE on enp0s31f6 to 255.255.255.255 port 67
DHCPDISCOVER on enp0s31f6 to 255.255.255.255 port 67 interval 4
DHCPREQUEST of 192.168.1.245 on enp0s31f6 to 255.255.255.255 port 67
DHCPOFFER of 192.168.1.245 from 192.168.1.1
DHCPACK of 192.168.1.245 from 192.168.1.1
RTNETLINK answers: File exists
mv: cannot move '/etc/resolv.conf.dhclient-new.12783' to '/etc/resolv.conf': 
Operation not permitted
/sbin/dhclient-script: 30: /etc/dhcp/dhclient-exit-hooks.d/ntpsec-ntpdate: 
Syntax error: word unexpected (expecting "do")
DHCPDECLINE on enp0s31f6 to 255.255.255.255 port 67
DHCPDISCOVER on enp0s31f6 to 255.255.255.255 port 67 interval 8
DHCPREQUEST of 192.168.1.245 on enp0s31f6 to 255.255.255.255 port 67
DHCPOFFER of 192.168.1.245 from 192.168.1.1
DHCPACK of 192.168.1.245 from 192.168.1.1
RTNETLINK answers: File exists
mv: cannot move '/etc/resolv.conf.dhclient-new.12799' to '/etc/resolv.conf': 
Operation not permitted
/sbin/dhclient-script: 30: /etc/dhcp/dhclient-exit-hooks.d/ntpsec-ntpdate: 
Syntax error: word unexpected (expecting "do")
DHCPDECLINE on enp0s31f6 to 255.255.255.255 port 67
DHCPDISCOVER on enp0s31f6 to 255.255.255.255 port 67 interval 6
DHCPREQUEST of 192.168.1.245 on enp0s31f6 to 255.255.255.255 port 67
DHCPOFFER of 192.168.1.245 from 192.168.1.1
DHCPACK of 192.168.1.245 from 192.168.1.1
RTNETLINK answers: File exists
mv: cannot move '/etc/resolv.conf.dhclient-new.12815' to '/etc/resolv.conf': 
Operation not permitted
/sbin/dhclient-script: 30: /etc/dhcp/dhclient-exit-hooks.d/ntpsec-ntpdate: 
Syntax error: word unexpected (expecting "do")
DHCPDECLINE on enp0s31f6 to 255.255.255.255 port 67
DHCPDISCOVER on enp0s31f6 to 255.255.255.255 port 67 interval 3
DHCPREQUEST of 192.168.1.245 on enp0s31f6 to 255.255.255.255 port 67
DHCPOFFER of 192.168.1.245 from 192.168.1.1
DHCPACK of 192.168.1.245 from 192.168.1.1
RTNETLINK answers: File exists
mv: cannot move '/etc/resolv.conf.dhclient-new.12838' to '/etc/resolv.conf': 
Operation not permitted
[…]

(the "cannot move" lines are a symptom of https://bugs.debian.org/860928
but should be unrelated with this issue)

If I add a semicolon before "do", the issues (Syntax error and endless
loop) are all gone:

~ # diff -u !$\~ !$
diff -u /etc/dhcp/dhclient-exit-hooks.d/ntpsec-ntpdate\~ 
/etc/dhcp/dhclient-exit-hooks.d/ntpsec-ntpdate
--- /etc/dhcp/dhclient-exit-hooks.d/ntpsec-ntpdate~     2018-08-03 
05:04:20.000000000 +0200
+++ /etc/dhcp/dhclient-exit-hooks.d/ntpsec-ntpdate      2018-08-08 
01:14:04.698885263 +0200
@@ -25,7 +25,7 @@
        new_ntp_servers=$(
                for i in \
                        $new_ntp_servers \
-                       $DHCP4_NTP_SERVERS $DHCP6_NTP_SERVERS \
+                       $DHCP4_NTP_SERVERS $DHCP6_NTP_SERVERS; \
                do
                        echo $i
                done | tr "\n" " " | sed "s| $||")


-- System Information:
Debian Release: buster/sid
  APT prefers unstable
  APT policy: (990, 'unstable'), (600, 'testing'), (500, 'unstable-debug'), 
(500, 'buildd-unstable'), (110, 'experimental'), (1, 'experimental-debug'), (1, 
'buildd-experimental')
Architecture: amd64 (x86_64)

Kernel: Linux 4.17.0-1-amd64 (SMP w/8 CPU cores)
Locale: LANG=C.UTF-8, LC_CTYPE=C.UTF-8 (charmap=UTF-8), LANGUAGE=C.UTF-8 
(charmap=UTF-8)
Shell: /bin/sh linked to /bin/dash
Init: sysvinit (via /sbin/init)
LSM: AppArmor: enabled

Versions of packages ntpsec-ntpdate depends on:
ii  netbase      5.4
ii  python3      3.6.6-1
ii  python3-ntp  1.1.1+dfsg1-1

ntpsec-ntpdate recommends no packages.

ntpsec-ntpdate suggests no packages.

-- no debconf information

Reply via email to