Boost C++ Libraries: Ticket #11179: create_directories() does not allow control of permissions https://svn.boost.org/trac10/ticket/11179 <p> Currently, there is no way to tell create_directory() or create_directories() what permissions to set for a new directory. This is particularly annoying when calling these functions from a library, where it's simply impossible to fiddle with umask. </p> <p> It would be really nice to have an overload that allows permissions to be set. </p> en-us Boost C++ Libraries /htdocs/site/boost.png https://svn.boost.org/trac10/ticket/11179 Trac 1.4.3 anonymous Wed, 02 Dec 2015 08:28:48 GMT <link>https://svn.boost.org/trac10/ticket/11179#comment:1 </link> <guid isPermaLink="false">https://svn.boost.org/trac10/ticket/11179#comment:1</guid> <description> <p> Seconded, being unable to pass permissions (and being unable to adjust the umask) opens an attack vector, with the directory being created with wide open permissions before being able to fix up the permissions. The following example illustrates the issue: </p> <pre class="wiki"> fs::create_directories(p); // There is a potential race here. Also note that // fs::permissions only fixes up the permissions for the last directory on the path. fs::permissions(p, fs::perms::owner_all); </pre><p> Being able to pass permissions to create_directories would help with the race and would make it easier for developers to do the right thing (tm). </p> </description> <category>Ticket</category> </item> <item> <author>thomas.voss@…</author> <pubDate>Wed, 02 Dec 2015 08:29:51 GMT</pubDate> <title/> <link>https://svn.boost.org/trac10/ticket/11179#comment:2 </link> <guid isPermaLink="false">https://svn.boost.org/trac10/ticket/11179#comment:2</guid> <description> <p> s/anonymous/thomas.voss@…/ :) </p> </description> <category>Ticket</category> </item> </channel> </rss>