commit - 2f8fba4a9117796f1ff193f6a5ec364c281abdaf
commit + 36cebc78ffac6e7997a803052b331de40c1ecb0e
blob - 478459b83b5403383f836af0f5dcbd44a19488d3
blob + 0fc2519d0928348f3f97ab53acdd803d44d6fa1c
--- FICS/prep_dir_for_privdrop.cpp
+++ FICS/prep_dir_for_privdrop.cpp
fs::recursive_directory_iterator dir_it(v_path);
uid_t uid = 0;
gid_t gid = 0;
- constexpr mode_t dir_mode = (S_IRWXU|S_IRGRP|S_IXGRP);
- constexpr mode_t file_mode = (S_IRUSR|S_IWUSR|S_IRGRP);
+ constexpr mode_t dir_mode = (S_IRWXU|S_IRWXG);
+ constexpr mode_t file_mode = (S_IRUSR|S_IWUSR|
+ S_IRGRP|S_IWGRP);
if (get_uid_and_gid(uid, gid) == -1) {
throw std::runtime_error("failed to get uid/gid");