1
0
mirror of https://git.FreeBSD.org/ports.git synced 2025-01-27 10:03:20 +00:00
freebsd-ports/archivers/lha/files/patch-symlink
Dirk Meyer 119ec92aa3 - Security Fix: symlink vulnerability
patch from:
ftp://updates.redhat.com/9/en/os/SRPMS/lha-1.14i-9.1.src.rpm"
2004-05-03 14:31:41 +00:00

11 lines
290 B
Plaintext

--- src/lhext.c.symlink 2000-10-04 10:57:38.000000000 -0400
+++ src/lhext.c 2003-05-19 22:55:57.000000000 -0400
@@ -351,6 +351,7 @@ extract_one(afp, hdr)
}
unlink(bb1);
+ make_parent_path(bb1);
l_code = symlink(bb2, bb1);
if (l_code < 0) {
if (quiet != TRUE)