First mkdir() bug killed :-)
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@4239 a1c6a512-1295-4272-9138-f99709370657
This commit is contained in:
parent
60b1c4bbe1
commit
ce1c93d628
1 changed files with 3 additions and 0 deletions
|
@ -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));
|
||||
|
||||
|
|
Loading…
Reference in a new issue