Dont try and make the "/" directory

This commit is contained in:
Glenn L McGrath 2002-10-19 23:56:41 +00:00
parent 61b7904afd
commit 4298e87fa5

View File

@ -50,7 +50,7 @@ int make_directory (char *path, long mode, int flags)
} }
if (flags == FILEUTILS_RECUR) { if (flags == FILEUTILS_RECUR) {
char *pp = strrchr(path, '/'); char *pp = strrchr(path, '/');
if (pp) { if ((pp) && (pp != path)) {
*pp = '\0'; *pp = '\0';
make_directory(path, mode, flags); make_directory(path, mode, flags);
*pp = '/'; *pp = '/';