mirror of
https://github.com/Atmosphere-NX/Atmosphere.git
synced 2025-07-07 18:12:14 +02:00
Fixed doubleup on path creation
This commit is contained in:
parent
0f39d4baec
commit
4b8d7461e7
@ -209,14 +209,6 @@ namespace sts::ncm {
|
|||||||
working_path_buf[i + 1] = '/';
|
working_path_buf[i + 1] = '/';
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
if (mkdir(working_path_buf + 1, S_IRWXU) == -1) {
|
|
||||||
R_TRY_CATCH(fsdevGetLastResult()) {
|
|
||||||
R_CATCH(ResultFsPathAlreadyExists) {
|
|
||||||
/* If the path already exists, that's okay. Anything else is an error. */
|
|
||||||
}
|
|
||||||
} R_END_TRY_CATCH;
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
} else {
|
} else {
|
||||||
return ResultNcmAllocationFailed;
|
return ResultNcmAllocationFailed;
|
||||||
|
Loading…
Reference in New Issue
Block a user