From: jca Date: Thu, 21 Dec 2023 01:20:54 +0000 (+0000) Subject: Print the proper file name in case we fail to allocate a "path" extended header X-Git-Url: http://artulab.com/gitweb/?a=commitdiff_plain;h=ba5cb4516c755a8f03b92e295df3eefdc841daf2;p=openbsd Print the proper file name in case we fail to allocate a "path" extended header Use name, not ln_name. Pasto introduced in previous. --- diff --git a/bin/pax/tar.c b/bin/pax/tar.c index 91bc114a7ed..84078ea14a6 100644 --- a/bin/pax/tar.c +++ b/bin/pax/tar.c @@ -1,4 +1,4 @@ -/* $OpenBSD: tar.c,v 1.74 2023/12/09 23:00:11 jca Exp $ */ +/* $OpenBSD: tar.c,v 1.75 2023/12/21 01:20:54 jca Exp $ */ /* $NetBSD: tar.c,v 1.5 1995/03/21 09:07:49 cgd Exp $ */ /*- @@ -1072,7 +1072,7 @@ wr_ustar_or_pax(ARCHD *arcn, int ustar) #ifndef SMALL else if (xheader_add(&xhdr, "path", arcn->name) == -1) { paxwarn(1, "File name too long for pax %s", - arcn->ln_name); + arcn->name); xheader_free(&xhdr); return(1); }