Fixed doubleup on path creation

This commit is contained in:
Adubbz 2019-08-09 17:31:59 +10:00
parent 4e5981488e
commit 46eefc5b2a

View file

@ -209,14 +209,6 @@ namespace sts::ncm {
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 {
return ResultNcmAllocationFailed;