Skip to content

Commit 6e77d57

Browse files
authored
Fix curl creating download dir in 750 mode (#1440)
1 parent 6a46745 commit 6e77d57

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

src/vcpkg/base/downloads.cpp

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1168,6 +1168,10 @@ namespace vcpkg
11681168
}
11691169
}
11701170
#endif
1171+
// Create directory in advance, otherwise curl will create it in 750 mode on unix style file systems.
1172+
const auto dir = download_path_part_path.parent_path();
1173+
fs.create_directories(dir, VCPKG_LINE_INFO);
1174+
11711175
auto cmd = Command{"curl"}
11721176
.string_arg("--fail")
11731177
.string_arg("--retry")

0 commit comments

Comments
 (0)