Radish alpha
H
HardenedBSD Package Manager
Radicle
Git (anonymous pull)
Log in to clone via SSH
reset buffer when reading link destination (fixes libiconv)
Baptiste Daroussin committed 15 years ago
commit d4ce33d6355d47e6a0be58373e6a6ac5d06e4643
parent 75bd5087d507ca6abc6df437d138fe7b1c00a6e4
1 file changed +1 -0
modified libpkg/packing.c
@@ -103,6 +103,7 @@ packing_append_file(struct packing *pack, const char *filepath, const char *newp
	archive_entry_copy_stat(pack->entry, &st);

	if (S_ISLNK(st.st_mode)) {
+
		bzero(linkdest, MAXPATHLEN);
		readlink(filepath, linkdest, MAXPATHLEN);
		archive_entry_set_symlink(pack->entry, linkdest);
	}