Radish alpha
H
HardenedBSD Package Manager
Radicle
Git (anonymous pull)
Log in to clone via SSH
Only get checksum for regular files (fixes #341)
Baptiste Daroussin committed 13 years ago
commit d54a25aab377610b92dfb4c7b1c213de48cf3ce7
parent 47b990198b5d952f95bbdb3fae688d77de268cfc
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)