mirror of
https://github.com/mozilla/gecko-dev.git
synced 2025-02-03 12:35:58 +00:00
Use of lstat, instead of stat, causes nsinstall to miss directories pointed to by
symlinks. Bugzilla #4954.
This commit is contained in:
parent
b09a461260
commit
88b0f7ca78
@ -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;
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user