Log if fopen() fails.

Reviewed by:	brian
This commit is contained in:
glebius 2010-10-18 07:28:53 +00:00
parent e2471b32d6
commit c6383206ce

View File

@ -319,8 +319,11 @@ ipcp_WriteDNS(struct ipcp *ipcp)
strerror(errno));
return 0;
}
} else
} else {
umask(mask);
log_Printf(LogERROR,"fopen(\"%s\", \"w\") failed: %s\n", _PATH_RESCONF,
strerror(errno));
}
return 1;
}