(main) Avoid a minor race condition when `-m MODE' is specified, by using
authorJim Meyering <jim@meyering.net>
Mon, 19 Dec 2005 18:17:16 +0000 (18:17 +0000)
committerJim Meyering <jim@meyering.net>
Mon, 19 Dec 2005 18:17:16 +0000 (18:17 +0000)
commit52893ffd2a3ff896e0b51f3f35bca191b71a47d4
treef140fffccb0c62565fbacdf2e353d212c6cc9134
parent17f521adfdd3b415f68fc30b61eb115c1e379a79
(main) Avoid a minor race condition when `-m MODE' is specified, by using
open, fchown, and close rather than just chown.  To do that reliably
(even with an overly restrictive umask), ensure that each
mkdir call uses a mode including at least owner-read access.
src/mkdir.c