mirror of
https://github.com/d0k3/GodMode9.git
synced 2025-06-25 21:22:47 +00:00
parent
5f43dcc02d
commit
dfe3e4bf15
@ -555,7 +555,10 @@ bool run_cmd(cmd_id id, u32 flags, char** argv, char* err_str) {
|
||||
char path[_VAR_CNT_LEN];
|
||||
strncpy(path, argv[1], _VAR_CNT_LEN);
|
||||
char* npattern = strrchr(path, '/');
|
||||
if (!npattern) {
|
||||
if (strncmp(path, "Z:", 2) == 0) {
|
||||
ret = false;
|
||||
if (err_str) snprintf(err_str, _ERR_STR_LEN, "forbidden drive");
|
||||
} else if (!npattern) {
|
||||
ret = false;
|
||||
if (err_str) snprintf(err_str, _ERR_STR_LEN, "invalid path");
|
||||
} else {
|
||||
|
Loading…
x
Reference in New Issue
Block a user