You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
When creating potentially sensitive directories, dir_ensure and file_ensure do not create the file with the passed mode; instead, the create it and then chmod it to the appropriate attributes.
For directories, mkdir accepts -m, such as mkdir foo -m 700. For files, the umask can be temporarily changed with (umask 077 && cat >> new_file), though this is a bit more hacky.
The text was updated successfully, but these errors were encountered:
When creating potentially sensitive directories,
dir_ensure
andfile_ensure
do not create the file with the passed mode; instead, the create it and thenchmod
it to the appropriate attributes.For directories,
mkdir
accepts-m
, such asmkdir foo -m 700
. For files, theumask
can be temporarily changed with(umask 077 && cat >> new_file)
, though this is a bit more hacky.The text was updated successfully, but these errors were encountered: