Radish alpha
H
HardenedBSD Package Manager
Radicle
Git (anonymous pull)
Log in to clone via SSH
Merge pull request #501 from zxombie/master
Matthew Seaman committed 13 years ago
commit 4f2bb4dab788d7935dec66f45e70fb89c1214426
parent 5bf1a445f611625840fc73110a3af76111164688
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);