kernel: need to bail with EEXIST earlier in mkdir
This commit is contained in:
parent
3eb7726784
commit
400c5de330
@ -431,6 +431,7 @@ int mkdir_fs(char *name, uint16_t permission) {
|
||||
if (this) {
|
||||
debug_print(WARNING, "Tried to mkdir a dir that already exists? (%s)", path);
|
||||
_exists = 1;
|
||||
return -EEXIST;
|
||||
}
|
||||
|
||||
char * f_path = path + strlen(path) - 1;
|
||||
|
Loading…
Reference in New Issue
Block a user