NetBSD Problem Report #55568
From gson@gson.org Thu Aug 13 16:12:16 2020
Return-Path: <gson@gson.org>
Received: from mail.netbsd.org (mail.netbsd.org [199.233.217.200])
(using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits))
(Client CN "mail.NetBSD.org", Issuer "mail.NetBSD.org CA" (not verified))
by mollari.NetBSD.org (Postfix) with ESMTPS id D6CBA1A9239
for <gnats-bugs@gnats.NetBSD.org>; Thu, 13 Aug 2020 16:12:15 +0000 (UTC)
Message-Id: <20200813161210.76EB8253EDE@guava.gson.org>
Date: Thu, 13 Aug 2020 19:12:10 +0300 (EEST)
From: gson@gson.org (Andreas Gustafsson)
Reply-To: gson@gson.org (Andreas Gustafsson)
To: gnats-bugs@NetBSD.org
Subject: tar(1) prints "(null)"
X-Send-Pr-Version: 3.95
>Number: 55568
>Category: bin
>Synopsis: tar(1) prints "(null)"
>Confidential: no
>Severity: serious
>Priority: medium
>Responsible: bin-bug-people
>State: closed
>Class: sw-bug
>Submitter-Id: net
>Arrival-Date: Thu Aug 13 16:15:00 +0000 2020
>Closed-Date: Sat Aug 22 13:42:31 +0000 2020
>Last-Modified: Sat Aug 22 13:42:31 +0000 2020
>Originator: Andreas Gustafsson
>Release: NetBSD 9.0
>Organization:
>Environment:
System: NetBSD
Architecture: x86_64
Machine: amd64
>Description:
Attempting to extract a tar(1) archive overwriting existing files that
one lacks write permission to causes tar to to print confusing
messages that includes the string "(null)". This probably means tar
is trying to print a null pointer, which arguably falls in the
category of "undefined behavior".
>How-To-Repeat:
As a non-root user:
cd /usr/tests/bin/tar
tar cf /tmp/test.tar .
tar xf /tmp/test.tar
This prints:
./: Can't restore time
./Atffile: (null)
./t_tar: (null)
tar: Error exit delayed from previous errors.
>Fix:
>Release-Note:
>Audit-Trail:
From: "Christos Zoulas" <christos@netbsd.org>
To: gnats-bugs@gnats.NetBSD.org
Cc:
Subject: PR/55568 CVS commit: src/external/bsd/libarchive/dist/libarchive
Date: Fri, 14 Aug 2020 10:42:45 -0400
Module Name: src
Committed By: christos
Date: Fri Aug 14 14:42:45 UTC 2020
Modified Files:
src/external/bsd/libarchive/dist/libarchive: archive_write_disk_posix.c
Log Message:
PR/55568: Andreas Gustafsson: Set the error when failing to create a temp file.
To generate a diff of this commit:
cvs rdiff -u -r1.5 -r1.6 \
src/external/bsd/libarchive/dist/libarchive/archive_write_disk_posix.c
Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.
State-Changed-From-To: open->closed
State-Changed-By: gson@NetBSD.org
State-Changed-When: Sat, 22 Aug 2020 13:42:31 +0000
State-Changed-Why:
Confirmed fixed, thanks.
>Unformatted:
(Contact us)
$NetBSD: query-full-pr,v 1.46 2020/01/03 16:35:01 leot Exp $
$NetBSD: gnats_config.sh,v 1.9 2014/08/02 14:16:04 spz Exp $
Copyright © 1994-2020
The NetBSD Foundation, Inc. ALL RIGHTS RESERVED.