https://bugzilla.mindrot.org/show_bug.cgi?id=2839

Darren Tucker <[email protected]> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |[email protected]

--- Comment #1 from Darren Tucker <[email protected]> ---
Created attachment 3134
  --> https://bugzilla.mindrot.org/attachment.cgi?id=3134&action=edit
apply umask to file creation mode

The reason is that files are chmodded accounting for the umask but
directories are not.

This patch applies the umask to the incoming modes, which will mean
that both files and directories will have the correct umask when
created, which is I think the right thing to do (since it removes a
race between file creation and chmod where the files may have more
permissive modes than the umask specifies).

I'm not sure if there's any other corner cases, though.

-- 
You are receiving this mail because:
You are watching someone on the CC list of the bug.
You are watching the assignee of the bug.
_______________________________________________
openssh-bugs mailing list
[email protected]
https://lists.mindrot.org/mailman/listinfo/openssh-bugs

Reply via email to