21466: mkdir -p didn't work with symlinks

This commit is contained in:
Peter Stephenson
2005-07-14 20:20:11 +00:00
parent bbe1c9bd17
commit b2cfbabced
2 changed files with 6 additions and 1 deletions

View File

@@ -127,7 +127,7 @@ domkdir(char *nam, char *path, mode_t mode, int p)
if(p) {
struct stat st;
if(!lstat(rpath, &st) && S_ISDIR(st.st_mode))
if(!stat(rpath, &st) && S_ISDIR(st.st_mode))
return 0;
}
oumask = umask(0);