Remove macro S_IRWUG
Use its expansion instead.
This commit is contained in:
parent
1c08ccf25b
commit
c665c83ba4
5 changed files with 8 additions and 9 deletions
|
@ -69,7 +69,8 @@ logopen(void)
|
|||
{
|
||||
int fd;
|
||||
|
||||
fd = open(logfile, O_WRONLY | O_CREAT | O_APPEND, S_IRWUG);
|
||||
fd = open(logfile, O_WRONLY | O_CREAT | O_APPEND,
|
||||
S_IRUSR | S_IWUSR | S_IRGRP | S_IWGRP);
|
||||
if (fd < 0)
|
||||
logerror("Can't open %s (%s)", logfile, strerror(errno));
|
||||
return fd;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue