[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

RESOLV_FILE & /etc/resolv.conf



On Fri, Sep 23, 2005 at 06:12:57PM +0200, Torsten Landschoff wrote:
> 
> As a minor nit-pick I suggest applying the following patch - there is no
> much point in using a macro for the path of the resolv.conf if it is not
> used consistently.
> 
> 
> Index: dhcp.c
> ===================================================================
> --- dhcp.c	(revision 30817)
> +++ dhcp.c	(working copy)
> @@ -568,7 +568,7 @@
>  	FILE *f;
>  	int count = 0;
>  
> -	if ((f = fopen("/etc/resolv.conf", "r")) != NULL)
> +	if ((f = fopen(RESOLV_FILE, "r")) != NULL)
>  	{
>  		char buf[256];
>  
> 

Applied
Thank you

St

Attachment: signature.asc
Description: Digital signature


Reply to: