mirror of
https://git.code.sf.net/p/zsh/code
synced 2026-04-18 06:53:35 -04:00
21466: mkdir -p didn't work with symlinks
This commit is contained in:
@@ -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);
|
||||
|
||||
Reference in New Issue
Block a user