SF.net SVN: morphix:[2666] trunk/datetimeconf/src/libdatetime.c

[email protected] Fri, 10 Jul 2009 13:24:56 +0000
Newsgroups gmane.linux.morphix.cvs
Message-ID <[email protected]>
Revision: 2666
          http://morphix.svn.sourceforge.net/morphix/?rev=2666&view=rev
Author:   aquatix
Date:     2009-07-10 13:24:56 +0000 (Fri, 10 Jul 2009)

Log Message:
-----------
Fixed calling of non-existing ntpdate in /etc/init.d/ Replaced by call to ntp. Thanks Thanatermesis for reporting and suggesting the fix

Modified Paths:
--------------
    trunk/datetimeconf/src/libdatetime.c

Modified: trunk/datetimeconf/src/libdatetime.c
===================================================================
--- trunk/datetimeconf/src/libdatetime.c	2009-07-01 21:33:38 UTC (rev 2665)
+++ trunk/datetimeconf/src/libdatetime.c	2009-07-10 13:24:56 UTC (rev 2666)
@@ -46,7 +46,7 @@
 }
 
 gboolean check_ntp_installed() {
-	FILE *fp = fopen("/etc/init.d/ntpdate","r");
+	FILE *fp = fopen("/etc/init.d/ntp","r");
 	if (fp == NULL) {
 		return NULL;
 	}


This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site.

------------------------------------------------------------------------------
Enter the BlackBerry Developer Challenge  
This is your chance to win up to $100,000 in prizes! For a limited time, 
vendors submitting new applications to BlackBerry App World(TM) will have
the opportunity to enter the BlackBerry Developer Challenge. See full prize  
details at: http://p.sf.net/sfu/Challenge