From cf0ae65b895da457db471c209b01b67e3d05c865 Mon Sep 17 00:00:00 2001 From: jca Date: Tue, 16 Apr 2024 20:51:11 +0000 Subject: [PATCH] Fix pasto: broken storage of symbolic link long destinations in pax format --- bin/pax/tar.c | 4 ++-- 1 file 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); -- 2.20.1