Skip to content

Commit

Permalink
fix windows mode
Browse files Browse the repository at this point in the history
  • Loading branch information
rhornung67 committed Aug 14, 2024
1 parent ba4e19a commit 444f1c4
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/common/OutputUtils.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -141,7 +141,7 @@ std::string recursiveMkdir(const std::string& in_path)
*/
if ( !outpath.empty() && pos < 0) {
#if defined(_WIN32)
if (_mkdir(path_buf, mode) != 0) {
if (_mkdir(path_buf, mode & MS_MODE_MASK) != 0) {
#else
if (mkdir(path_buf, mode) != 0) {
#endif
Expand Down Expand Up @@ -170,7 +170,7 @@ std::string recursiveMkdir(const std::string& in_path)
/* make directory if not at end of path */
if (pos < length) {
#if defined(_WIN32)
if (_mkdir(path_buf, mode) != 0) {
if (_mkdir(path_buf, mode & MS_MODE_MASK) != 0) {
#else
if (mkdir(path_buf, mode) != 0) {
#endif
Expand Down

0 comments on commit 444f1c4

Please sign in to comment.