Skip to content

Commit af0b630

Browse files
authored
Unrolled build for rust-lang#116349
Rollup merge of rust-lang#116349 - onur-ozkan:hfix, r=tmandry ensure the parent path's existence on `x install` fixes rust-lang#116127 (comment) cc `@tmandry`
2 parents 8e47113 + 2c8759e commit af0b630

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

src/bootstrap/install.rs

+3-3
Original file line numberDiff line numberDiff line change
@@ -46,10 +46,10 @@ fn sanitize_sh(path: &Path) -> String {
4646
}
4747

4848
fn is_dir_writable_for_user(dir: &PathBuf) -> bool {
49-
let tmp_file = dir.join(".tmp");
50-
match fs::File::create(&tmp_file) {
49+
let tmp = dir.join(".tmp");
50+
match fs::create_dir_all(&tmp) {
5151
Ok(_) => {
52-
fs::remove_file(tmp_file).unwrap();
52+
fs::remove_dir_all(tmp).unwrap();
5353
true
5454
}
5555
Err(e) => {

0 commit comments

Comments
 (0)