diff options
author | Jeremie Courreges-Anglas <jca@cvs.openbsd.org> | 2023-12-21 01:20:55 +0000 |
---|---|---|
committer | Jeremie Courreges-Anglas <jca@cvs.openbsd.org> | 2023-12-21 01:20:55 +0000 |
commit | 6193b1bbaf7e95ab0609d7de6e4cd6a018edd240 (patch) | |
tree | 03e8e459f6d84edab56fb1d8b9ae2e1203540bf2 | |
parent | 272c9893e3265fd50758b4bfb47f5bde6503f0c4 (diff) |
Print the proper file name in case we fail to allocate a "path" extended header
Use name, not ln_name. Pasto introduced in previous.
-rw-r--r-- | bin/pax/tar.c | 4 |
1 files changed, 2 insertions, 2 deletions
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); } |