Log if fopen() fails.
Reviewed by: brian
This commit is contained in:
parent
e2471b32d6
commit
c6383206ce
@ -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;
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user