Radish alpha
H
rad:z3QDZAW2FAfuLvihrhiyDC9fAD8G9
HardenedBSD Package Manager
Radicle
Git
Only get checksum for regular files (fixes #341)
Baptiste Daroussin committed 13 years ago
commit d54a25aab377610b92dfb4c7b1c213de48cf3ce7
parent 47b9901
1 file changed +3 -3
modified libpkg/pkg_ports.c
@@ -227,10 +227,10 @@ file(struct plist *p, char *line)

	if (lstat(testpath, &st) == 0) {
		buf = NULL;
-
		regular = true;
+
		regular = false;

-
		if (S_ISLNK(st.st_mode))
-
			regular = false;
+
		if (S_ISREG(st.st_mode))
+
			regular = true;

		/* special case for hardlinks */
		if (st.st_nlink > 1)