mkdir almost working.

Added changes to pathname lookup code so that the root
directory special case is handled properly.
This commit is contained in:
Bahadir Balban
2008-04-15 00:51:58 +01:00
parent 287b7705da
commit a9420d3dc9
11 changed files with 159 additions and 66 deletions

View File

@@ -31,10 +31,6 @@ char *splitpath(char **str, char sep)
char *cursor = *str;
char *end;
/* Root is the special case, return it as is. */
if (strcmp(*str, "/"))
return *str;
/* Move forward until no seperator */
while (*cursor == sep) {
*cursor = '\0';