From b2cfbabced50d9c4b936006fbba58a227987490c Mon Sep 17 00:00:00 2001 From: Peter Stephenson Date: Thu, 14 Jul 2005 20:20:11 +0000 Subject: 21466: mkdir -p didn't work with symlinks --- Src/Modules/files.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'Src/Modules/files.c') diff --git a/Src/Modules/files.c b/Src/Modules/files.c index 30ed32103..bb1cc0065 100644 --- a/Src/Modules/files.c +++ b/Src/Modules/files.c @@ -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); -- cgit 1.4.1