First mkdir() bug killed :-)

git-svn-id: svn://svn.rockbox.org/rockbox/trunk@4239 a1c6a512-1295-4272-9138-f99709370657
This commit is contained in:
Linus Nielsen Feltzing 2004-01-15 14:34:54 +00:00
parent 60b1c4bbe1
commit ce1c93d628

View file

@ -158,9 +158,12 @@ int mkdir(char *name)
if ( !strcasecmp(basename, entry->d_name) ) {
DEBUGF("mkdir error: file exists\n");
errno = EEXIST;
closedir(dir);
return - 3;
}
}
closedir(dir);
rc = fat_create_dir(basename, &newdir, &(dir->fatdir));