mirror of
https://github.com/drasko/codezero.git
synced 2026-03-29 16:29:04 +02:00
mkdir almost working.
Added changes to pathname lookup code so that the root directory special case is handled properly.
This commit is contained in:
@@ -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';
|
||||
|
||||
Reference in New Issue
Block a user