Michael Forney 529e50a7ad mkdir: Fix created directory permissions
Previously, with -p, the specified directory and all of its parents
would be 0777&~filemask (regardless of the -m flag). POSIX says parent
directories must created as (0300|~filemask)&0777, and of course if -m
is set, the specified directory should be created with those
permissions.

Additionally, POSIX says that for symbolic_mode strings, + and - should
be interpretted relative to a default mode of 0777 (not 0).

Without -p, previously the directory would be created first with
0777&~filemask (before a chmod), but POSIX says that the directory shall
at no point in time have permissions less restrictive than the -m mode
argument.

Rather than dealing with mkdir removing the filemask bits by calling
chmod afterward, just clear the umask and remove the bits manually.
2017-07-03 21:03:11 +02:00
..
2017-05-07 13:50:26 +02:00
2015-02-11 01:17:21 +00:00
2015-12-21 14:13:36 +00:00
2015-09-30 19:44:10 +01:00
2014-11-17 16:48:34 +00:00
2015-10-26 16:53:28 +00:00
2016-07-09 10:09:50 +01:00
2014-11-17 16:48:34 +00:00
2015-03-10 22:19:19 +01:00
2015-04-20 11:12:40 +01:00
2014-11-17 16:48:34 +00:00
2016-02-24 10:15:16 +00:00
2016-02-24 10:15:16 +00:00
2016-02-24 10:15:16 +00:00
2016-02-24 10:15:16 +00:00
2015-09-30 19:44:10 +01:00
2015-03-17 11:24:49 +01:00
2015-03-17 11:24:49 +01:00
2015-01-25 17:48:11 +00:00