Add an missing argument to open(2). If O_CREAT flag is specified,
file permission has to be specified as well.
This commit is contained in:
parent
24bc5224c6
commit
9a492fd171
@ -455,7 +455,7 @@ set_nameservers(struct ctx *ctx, const char *respath, int ns, ...)
|
||||
free(ctx->ns);
|
||||
}
|
||||
|
||||
fd = open(respath, O_RDWR | O_CREAT | O_NOFOLLOW);
|
||||
fd = open(respath, O_RDWR | O_CREAT | O_NOFOLLOW, 0666);
|
||||
if (fd < 0)
|
||||
return (-1);
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user