summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorsrinivas%netscape.com <devnull@localhost>1999-04-21 02:11:53 +0000
committersrinivas%netscape.com <devnull@localhost>1999-04-21 02:11:53 +0000
commit57fb3a4865b70ac9409a043a5da14d4f41a42273 (patch)
tree3bfecd159761ed19a5fab8f58f5ce1d227bea0a3
parent69f0de239cea00623fab1e86a6b81154f64451c5 (diff)
downloadnspr-hg-57fb3a4865b70ac9409a043a5da14d4f41a42273.tar.gz
Use of lstat, instead of stat, causes nsinstall to miss directories pointed to by
symlinks. Bugzilla #4954.
-rw-r--r--config/nsinstall.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/config/nsinstall.c b/config/nsinstall.c
index d90bd89f..22a55184 100644
--- a/config/nsinstall.c
+++ b/config/nsinstall.c
@@ -129,7 +129,7 @@ mkdirs(char *path, mode_t mode)
*cp = '\0';
if (cp && cp != path) {
*cp = '\0';
- if ((lstat(path, &sb) < 0 || !S_ISDIR(sb.st_mode)) &&
+ if ((stat(path, &sb) < 0 || !S_ISDIR(sb.st_mode)) &&
mkdirs(path, mode) < 0) {
return -1;
}