Bug 671565

Summary: ntpdate - the sntp alternative is completely bogus.
Product: [openSUSE] openSUSE 11.4 Reporter: Per Jessen <per>
Component: BasesystemAssignee: E-mail List <bnc-team-screening>
Status: VERIFIED DUPLICATE QA Contact: E-mail List <qa-bugs>
Severity: Minor    
Priority: P5 - None    
Version: Factory   
Target Milestone: ---   
Hardware: Other   
OS: Other   
Whiteboard:
Found By: --- Services Priority:
Business Priority: Blocker: ---
Marketing QA Status: --- IT Deployment: ---

Description Per Jessen 2011-02-13 14:00:55 UTC
User-Agent:       Mozilla/5.0 (X11; U; Linux i686 (x86_64); en-GB; rv:1.9.2.10) Gecko/20100914 Firefox/3.6.10

If you attempt to set the system time using ntpdate, it displays a warning about ntpdate being deprecated along with a suggestion to use sntp:

The program /usr/sbin/sntp offers comparable functionality to ntpdate.
Specifically
  sntp -p no -r pool.ntp.org
is equivalent to
  ntpdate pool.ntp.org

However, the -p option means "use syslog" and takes no argument and the -r option does not exist. 
Also, very reasonably, the ntpdate script tries to fall back to sntp, but again the options are completely bogus:

/usr/sbin/sntp -F -P no -r $1

There is no -F option.
There is no -P option and the lowercase -p doesn't take an argument. 
There is no -r option. 

A working alternative is simply "sntp <server>". 

Reproducible: Always
Comment 1 Per Jessen 2011-02-13 14:05:54 UTC
Closing, already reported in bug 658255.

*** This bug has been marked as a duplicate of bug 658255 ***