Commit 38b4bdca authored by abenoit's avatar abenoit
Browse files

grp write autorisation for out redir

parent 988a5b99
......@@ -193,7 +193,7 @@ int apply_redir(char *cur_arg, enum e_redir_op redir, t_xe *xe)
{
src_fd = STDOUT_FILENO;
flags = O_WRONLY | O_CREAT;
mode = S_IRUSR | S_IWUSR | S_IRGRP | S_IROTH;
mode = S_IRUSR | S_IWUSR | S_IRGRP | S_IWGRP | S_IROTH;
if (redir == APPEND)
flags |= O_APPEND;
}
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment