Radish alpha
H
rad:z3QDZAW2FAfuLvihrhiyDC9fAD8G9
HardenedBSD Package Manager
Radicle
Git
Merge pull request #501 from zxombie/master
Matthew Seaman committed 12 years ago
commit 4f2bb4dab788d7935dec66f45e70fb89c1214426
parent 5bf1a44
1 file changed +5 -2
modified libpkg/elfhints.c
@@ -225,8 +225,11 @@ scan_dirs_for_shlibs(struct shlib_list **shlib_list, int numdirs,
			int		 ret;
			const char	*vers;

-
			/* Only regular files and sym-links */
-
			if (dp->d_type != DT_REG && dp->d_type != DT_LNK)
+
			/* Only regular files and sym-links. On some
+
			   filesystems d_type is not set, on these the d_type
+
			   field will be DT_UNKNOWN. */
+
			if (dp->d_type != DT_REG && dp->d_type != DT_LNK &&
+
			    dp->d_type != DT_UNKNOWN)
				continue;

			len = strlen(dp->d_name);