(doredir): Open the file with mode 0666 instead of 0600, for
consistency with redirections in pipes. Users should use umask to restrict permissions.
This commit is contained in:
parent
8b7d0b915d
commit
0e506556c2
1 changed files with 1 additions and 1 deletions
|
@ -186,7 +186,7 @@ doredir(char *p)
|
|||
return;
|
||||
}
|
||||
|
||||
fd = open(p, mode, 0600);
|
||||
fd = open(p, mode, 0666);
|
||||
redir_fp = fd < 0 ? NULL : fdopen(fd, "w");
|
||||
if (!redir_fp) {
|
||||
fprintf(stderr, "Can't redirect to %s: %s\n",
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue