Radish alpha
H
rad:z3QDZAW2FAfuLvihrhiyDC9fAD8G9
HardenedBSD Package Manager
Radicle
Git
reset buffer when reading link destination (fixes libiconv)
Baptiste Daroussin committed 14 years ago
commit d4ce33d6355d47e6a0be58373e6a6ac5d06e4643
parent 75bd508
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);
	}