Allow symlinks in the packages directory
This commit is contained in:
@@ -1271,7 +1271,7 @@ Volume::_DomainEntryCreated(PackageDomain* domain, dev_t deviceID,
|
|||||||
|
|
||||||
// check whether the entry is a file
|
// check whether the entry is a file
|
||||||
struct stat st;
|
struct stat st;
|
||||||
if (fstatat(domain->DirectoryFD(), name, &st, AT_SYMLINK_NOFOLLOW) < 0
|
if (fstatat(domain->DirectoryFD(), name, &st, 0) < 0
|
||||||
|| !S_ISREG(st.st_mode)) {
|
|| !S_ISREG(st.st_mode)) {
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user