components/ntp/patches/10-etcfix.patch
branchs11-update
changeset 3925 49fdcf040780
parent 2789 b28fe4d7df32
child 7804 d4f2d5f40cf9
equal deleted inserted replaced
3923:d19fbc6076b9 3925:49fdcf040780
    35 -#define KEYFILE 	"/etc/ntp.keys"
    35 -#define KEYFILE 	"/etc/ntp.keys"
    36 +#define KEYFILE 	"/etc/inet/ntp.keys"
    36 +#define KEYFILE 	"/etc/inet/ntp.keys"
    37  # else
    37  # else
    38  #define KEYFILE 	"%windir%\\ntp.keys"
    38  #define KEYFILE 	"%windir%\\ntp.keys"
    39  # endif /* SYS_WINNT */
    39  # endif /* SYS_WINNT */
    40 --- ntpd/refclock_oncore.c.orig	Thu May 14 06:34:41 2009
    40 --- ntpd/refclock_oncore.c
    41 +++ ntpd/refclock_oncore.c	Thu May 14 06:15:12 2009
    41 +++ ntpd/refclock_oncore.c
    42 @@ -1210,7 +1210,7 @@
    42 @@ -1211,7 +1211,7 @@ oncore_read_config(
    43  
    43  
    44  	FILE	*fd;
    44  	FILE	*fd;
    45  	char	*cp, *cc, *ca, line[100], units[2], device[64], **cpp;
    45  	char	*cc, *ca, line[100], units[2], device[64];
    46 -	char	*dirs[] = { "/etc/ntp", "/etc", 0 };
    46 -	const char	*dirs[] = { "/etc/ntp", "/etc", 0 };
    47 +	char	*dirs[] = { "/etc/inet", "/etc", 0 };
    47 +	const char	*dirs[] = { "/etc/inet/ntp", "/etc/inet", 0 };
       
    48  	const char *cp, **cpp;
    48  	int	i, sign, lat_flg, long_flg, ht_flg, mode, mask;
    49  	int	i, sign, lat_flg, long_flg, ht_flg, mode, mask;
    49  	double	f1, f2, f3;
    50  	double	f1, f2, f3;
    50