Bug 250529 - Use option "-c" with relative path can't specify ntp config data
Use option "-c" with relative path can't specify ntp config data
Status: CLOSED DUPLICATE of bug 246568
Product: Red Hat Enterprise Linux 5
Classification: Red Hat
Component: ntp (Show other bugs)
All Linux
low Severity medium
: ---
: ---
Assigned To: Miroslav Lichvar
Brian Brock
Depends On:
  Show dependency treegraph
Reported: 2007-08-01 21:32 EDT by zhangxiliang
Modified: 2007-11-30 17:07 EST (History)
0 users

See Also:
Fixed In Version:
Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of:
Last Closed: 2007-08-07 04:46:56 EDT
Type: ---
Regression: ---
Mount Type: ---
Documentation: ---
Verified Versions:
Category: ---
oVirt Team: ---
RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: ---

Attachments (Terms of Use)
the patch to the ntpd manpage for "-c" (473 bytes, patch)
2007-08-01 21:32 EDT, zhangxiliang
no flags Details | Diff

  None (edit)
Description zhangxiliang 2007-08-01 21:32:14 EDT
1.Description of Problem: 
 If use this command with option "-c ntp.conf", 
 the remote host cannot update the time from the local host successful.

2.How reproducible:
3.Step to Reproduce:
  ntp server:
  1, execute command "date -s 061116"
  2, set ip
  3, execute command "service ntpd stop"
  4, execute command "echo "server" > ntp.conf"
  5, execute command "ntpd -c ntp.conf"
  ntp client:
  1, wait 10 minutes
  2, execute command "date -s 061115"
  3, set ip
  4, execute command "ntpdate"
  5, execute command "date"
  6, confirm the date is "061116"

4.Actual results:
  The date on the ntp client is "061115".

5.Expected results:
  The date on the ntp client is "061116".
Comment 1 zhangxiliang 2007-08-01 21:32:14 EDT
Created attachment 160487 [details]
the patch to the ntpd manpage for "-c"
Comment 2 Miroslav Lichvar 2007-08-06 11:22:57 EDT
The path can be relative, it's just that ntpd (if -n or -d option wasn't
specified) changes the current working directory to /.
Comment 3 Miroslav Lichvar 2007-08-07 04:46:56 EDT

*** This bug has been marked as a duplicate of 246568 ***
Comment 4 zhangxiliang 2007-08-08 06:07:48 EDT
In ntpd, if we use the relative path, it must be relative to "/" which is not
the current working directory.

For the users, it may be difficult to understand.

So I suggest to modify the the description for "-c" and "-p" option in the manpage. 
Comment 5 Miroslav Lichvar 2007-08-08 06:37:14 EDT
It's ok with me. The patch needs to take into account -n and -d options as
running "ntpd -n -c ./ntp.conf" will read the file from the current working

Note You need to log in before you can comment on or make changes to this bug.