Commit 2d19a875 authored by Cyrill Gorcunov's avatar Cyrill Gorcunov Committed by Pavel Emelyanov

pipes: Set fowners for both pipe ends

Signed-off-by: 's avatarCyrill Gorcunov <gorcunov@openvz.org>
Signed-off-by: 's avatarPavel Emelyanov <xemul@parallels.com>
parent 6177c92b
......@@ -206,6 +206,9 @@ static int recv_pipe_fd(struct pipe_info *pi)
fd = open(path, pi->pe.flags);
close(tmp);
if (restore_fown(fd, &pi->pe.fown))
return -1;
return fd;
}
......
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