mirror of
git://git.code.sf.net/p/zsh/code
synced 2025-09-02 10:01:11 +02:00
21466: mkdir -p didn't work with symlinks
This commit is contained in:
parent
bbe1c9bd17
commit
b2cfbabced
2 changed files with 6 additions and 1 deletions
|
@ -1,3 +1,8 @@
|
|||
2005-07-14 Peter Stephenson <pws@pwstephenson.fsnet.co.uk>
|
||||
|
||||
* 21466: Src/Modules/files.c: lstat() should be stat() in mkdir -p
|
||||
test (from Fr. Br. George).
|
||||
|
||||
2005-07-12 Doug Kearns <djkea2@gus.gscit.monash.edu.au>
|
||||
|
||||
* 21449: Completion/Unix/Command/_ruby: limit options available to
|
||||
|
|
|
@ -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);
|
||||
|
|
Loading…
Reference in a new issue