Opened 5 years ago

Closed 5 years ago

Last modified 5 years ago

#9068 closed defect (fixed)

update-leap for ntp does not work

Reported by: Pierre Labastie Owned by: Pierre Labastie
Priority: normal Milestone: 8.1
Component: BOOK Version: SVN
Severity: normal Keywords:
Cc:

Description

There are two issues:

  • A perl regular expression which does not work with /etc/ntp.conf from the book. The following perl RE is used for extracting the name of the leap-seconds file from /etc/ntp.conf:
    /^ *leapfile\s+"(\S+)"/
    

This suppose that the file occurs in a line of the form:

leapfile "/path/to/leap/seconds/file"

with explicit quotes. If, as we advise, the line is of the form:

leapfile /path/to/leap/seconds/file

the perl RE does not find the file. In the documentation, nothing says the quotes should be there. And in examples from internet, some have quotes, and some haven't...

Change History (7)

comment:1 by Pierre Labastie, 5 years ago

A perl RE that would work with and without quotes could be:

/^ *leapfile\s+"?([^\s"]+)"?/

But perl wizzards might propose a better alternative.

comment:2 by bdubbs@…, 5 years ago

That looks good to me.

comment:3 by bdubbs@…, 5 years ago

Owner: changed from blfs-book@… to Pierre Labastie

comment:4 by Pierre Labastie, 5 years ago

Status: newassigned

A lot of research for a small result: just change https to http in the file allows the file to be downloaded.

comment:5 by Pierre Labastie, 5 years ago

Resolution: fixed
Status: assignedclosed

Fixed at r18542

comment:6 by bdubbs@…, 5 years ago

Milestone: 8.1m8.1

Milestone renamed

comment:7 by bdubbs@…, 5 years ago

Milestone: m8.18.1

Milestone renamed

Note: See TracTickets for help on using tickets.