The attached diff fixes the issue for me.
NB: The variable is also used in ntpd_precmd() if you used chroot. I guess
that use case was broken too.
Regards,
Ronald.
On Tue, 28 Nov 2017 21:06:46 +0100, Ronald Klop <ronald-lists at klop.ws>
wrote:
> Ah, it comes from the script after it.
>
> [ronald at rpi2 /etc/periodic/daily]$ ./480.leapfile-ntpd
> usage: fetch [-146AadFlMmnPpqRrsUv] [-B bytes] [--bind-address=host]
> [--ca-cert=file] [--ca-path=dir] [--cert=file] [--crl=file]
> [-i file] [--key=file] [-N file] [--no-passive] [--no-proxy=list]
> [--no-sslv3] [--no-tlsv1] [--no-verify-hostname]
> [--no-verify-peer]
> [-o file] [--referer=URL] [-S bytes] [-T seconds]
> [--user-agent=agent-string] [-w seconds] URL ...
> fetch [-146AadFlMmnPpqRrsUv] [-B bytes] [--bind-address=host]
> [--ca-cert=file] [--ca-path=dir] [--cert=file] [--crl=file]
> [-i file] [--key=file] [-N file] [--no-passive] [--no-proxy=list]
> [--no-sslv3] [--no-tlsv1] [--no-verify-hostname]
> [--no-verify-peer]
> [-o file] [--referer=URL] [-S bytes] [-T seconds]
> [--user-agent=agent-string] [-w seconds] -h host -f file [-c dir]
>
> Apparently $ntp_tmp_leapfile is empty on this line in /etc/rc.d/ntpd:
> fetch $ntp_leapfile_fetch_opts -o
> $ntp_tmp_leapfile $url && break
>
> [ronald at rpi2 ~]$ sh -x /etc/rc.d/ntpd onefetch
> <snip a lot of output>
> + fetch -mq -o https://www.ietf.org/timezones/data/leap-seconds.list
> usage: fetch [-146AadFlMmnPpqRrsUv] [-B bytes] [--bind-address=host]
>
>
> The variable $ntp_tmp_leapfile is missing since the fetch method was
> split in r325256.
>
https://svnweb.freebsd.org/base/stable/11/etc/rc.d/ntpd?r1=325256&r2=325255&pathrev=325256
>
> Cc-ing the committer.
>
> Regards,
>
> Ronald.
>
>
> On Tue, 28 Nov 2017 20:34:57 +0100, Ronald Klop <ronald-lists at
klop.ws>
> wrote:
>
>> Isn't this very weird in the output of last night:
>> "Checking for rejected mail hosts:
>> usage: fetch [-146AadFlMmnPpqRrsUv] [-B bytes]
[--bind-address=host]"
>>
>> I don't see yet how the script
>> /etc/periodic/daily/460.status-mail-rejects can try to call fetch.
>>
>> Any thoughts on this?
>>
>> For the record. I run dma instead of sendmail.
>> $ cat /etc/mail/mailer.conf
>> # $FreeBSD: stable/11/libexec/dma/dmagent/mailer.conf 289087 2015-10-09
>> 22:09:44Z bapt $
>>
>> sendmail /usr/libexec/dma
>> send-mail /usr/libexec/dma
>> mailq /usr/libexec/dma
>>
>> on
>> FreeBSD rpi2 11.1-STABLE FreeBSD 11.1-STABLE #2 r325879: Thu Nov 16
>> 02:03:21 CET 2017
>> root at rpi2:/mnt/usbdisk/usr/obj/mnt/usbdisk/usr/src/sys/RPI2 arm
>>
>> Ronald.
>>
>>
>>
>> ------- Forwarded message -------
>> From: root at klop.ws
>> To: root
>> Cc:
>> Subject: rpi2 daily run output
>> Date: Tue, 28 Nov 2017 03:12:48 +0100
>>
>>
>> Removing stale files from /var/preserve:
>>
>> Cleaning out old system announcements:
>>
>> Removing stale files from /var/rwho:
>>
>> Removing stale entries from sendmail host status cache:
>> mailwrapper: no mapping in /etc/mail/mailer.conf
>>
>> Backup passwd and group files:
>>
>> Verifying group file syntax:
>> /etc/group is fine
>>
>> Backing up mail aliases:
>>
>> Disk status:
>> Filesystem Size Used Avail Capacity Mounted on
>> /dev/ufs/rootfs 1.8G 1.4G 242M 86% /
>> devfs 1.0K 1.0K 0B 100% /dev
>> /dev/msdosfs/MSDOSBOOT 50M 7.4M 43M 15% /boot/msdos
>> tmpfs 128M 628K 127M 0% /tmp
>> /dev/da0s1a 14G 7.8G 4.7G 62% /mnt/usbdisk
>> tmpfs 512M 4.0K 512M 0%
>> /var/tmp/ports-build
>>
>> Network interface status:
>> Name Mtu Network Address Ipkts Ierrs Idrop
>> Opkts
>> Oerrs Coll Drop
>> lo0 16384 <Link#1> lo0 0 0 0
>> 0 0 0 0
>> lo0 - localhost localhost 0 - -
>> 0 - - -
>> lo0 - fe80::%lo0/64 fe80::1%lo0 0 - -
>> 0 - - -
>> lo0 - your-net localhost 0 - -
>> 0 - - -
>> ue0 1500 <Link#2> b8:27:eb:77:37:63 581144 0 0
>> 95090 0 0 0
>> ue0 - 192.168.1.0/2 192.168.1.148 95132 - -
>> 84713 - - -
>>
>> Local system status:
>> 3:01AM up 11 days, 11:05, 2 users, load averages: 0.36, 0.09, 0.03
>>
>> Mail in local queue:
>> Mail queue is empty
>>
>> Mail in submit queue:
>> mailq: invalid arguments
>>
>> Security check:
>> (output mailed separately)
>>
>> Checking for rejected mail hosts:
>> usage: fetch [-146AadFlMmnPpqRrsUv] [-B bytes] [--bind-address=host]
>> [--ca-cert=file] [--ca-path=dir] [--cert=file] [--crl=file]
>> [-i file] [--key=file] [-N file] [--no-passive]
>> [--no-proxy=list]
>> [--no-sslv3] [--no-tlsv1] [--no-verify-hostname]
>> [--no-verify-peer]
>> [-o file] [--referer=URL] [-S bytes] [-T seconds]
>> [--user-agent=agent-string] [-w seconds] URL ...
>> fetch [-146AadFlMmnPpqRrsUv] [-B bytes] [--bind-address=host]
>> [--ca-cert=file] [--ca-path=dir] [--cert=file] [--crl=file]
>> [-i file] [--key=file] [-N file] [--no-passive]
>> [--no-proxy=list]
>> [--no-sslv3] [--no-tlsv1] [--no-verify-hostname]
>> [--no-verify-peer]
>> [-o file] [--referer=URL] [-S bytes] [-T seconds]
>> [--user-agent=agent-string] [-w seconds] -h host -f file [-c
>> dir]
>>
>> Checking userland and kernel versions:
>> Userland and kernel are in sync.
>>
>> Backing up pkgng database:
>>
>> -- End of daily output --
>> _______________________________________________
>> freebsd-stable at freebsd.org mailing list
>> https://lists.freebsd.org/mailman/listinfo/freebsd-stable
>> To unsubscribe, send any mail to
>> "freebsd-stable-unsubscribe at freebsd.org"
> _______________________________________________
> freebsd-stable at freebsd.org mailing list
> https://lists.freebsd.org/mailman/listinfo/freebsd-stable
> To unsubscribe, send any mail to "freebsd-stable-unsubscribe at
freebsd.org"
-------------- next part --------------
A non-text attachment was scrubbed...
Name: ntpd.diff
Type: application/octet-stream
Size: 748 bytes
Desc: not available
URL:
<http://lists.freebsd.org/pipermail/freebsd-stable/attachments/20171128/b88714e3/attachment.obj>