Bug 264904

Summary: /etc/rc.d/ntpd undefined variable: $ntp_leapfile_fetch_opts
Product: Base System Reporter: p5B2EA84B3
Component: binAssignee: Mateusz Piotrowski <0mp>
Status: Closed Works As Intended    
Severity: Affects Many People CC: 0mp
Priority: ---    
Version: Unspecified   
Hardware: Any   
OS: Any   

Description p5B2EA84B3 2022-06-26 11:30:55 UTC
the fetch command has $ntp_leapfile_fetch_opts which is defined nowhere:

fetch $ntp_leapfile_fetch_opts -o $_ntp_tmp_leapfile $url && break
Comment 1 Mateusz Piotrowski freebsd_committer freebsd_triage 2022-07-26 14:33:41 UTC
Thank you for the report.

It is defined in the default rc.conf:

    $ rg ntp_leapfile_fetch_opts /etc
    /etc/defaults/rc.conf
    412:ntp_leapfile_fetch_opts="-mq"       # Options to use for ntp leapfile fetch,
    /etc/rc.d/ntpd
    227:                    fetch $ntp_leapfile_fetch_opts -o $_ntp_tmp_leapfile $url && break