summaryrefslogtreecommitdiff
path: root/bin
diff options
context:
space:
mode:
authorJeremie Courreges-Anglas <jca@cvs.openbsd.org>2024-04-16 20:51:12 +0000
committerJeremie Courreges-Anglas <jca@cvs.openbsd.org>2024-04-16 20:51:12 +0000
commit5a1da99a29819d41d6a31e0a09d400d85a608680 (patch)
tree9994493669adf25fc1f7f0582243fe3f6b14ec4a /bin
parent91552f90d776cfd67d6f26aa48f1bba19a891f6b (diff)
Fix pasto: broken storage of symbolic link long destinations in pax format
Diffstat (limited to 'bin')
-rw-r--r--bin/pax/tar.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/bin/pax/tar.c b/bin/pax/tar.c
index dff6684c68e..212961f8f44 100644
--- a/bin/pax/tar.c
+++ b/bin/pax/tar.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: tar.c,v 1.82 2024/04/16 19:09:06 jca Exp $ */
+/* $OpenBSD: tar.c,v 1.83 2024/04/16 20:51:11 jca Exp $ */
/* $NetBSD: tar.c,v 1.5 1995/03/21 09:07:49 cgd Exp $ */
/*-
@@ -1135,7 +1135,7 @@ wr_ustar_or_pax(ARCHD *arcn, int ustar)
return(1);
}
#ifndef SMALL
- else if (xheader_add(&xhdr, "linkpath", arcn->name) == -1) {
+ else if (xheader_add(&xhdr, "linkpath", arcn->ln_name) == -1) {
paxwarn(1, "Link name too long for pax %s",
arcn->ln_name);
xheader_free(&xhdr);