kernel: need to bail with EEXIST earlier in mkdir

This commit is contained in:
K. Lange 2018-12-11 13:37:50 +09:00
parent 3eb7726784
commit 400c5de330

View File

@ -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;