NetBSD Problem Report #695

From gnats  Wed Jan  4 00:06:19 1995
Received: from pain.lcs.mit.edu (pain.lcs.mit.edu [128.52.46.239]) by sun-lamp.cs.berkeley.edu (8.6.9/8.6.9) with ESMTP id AAA00665 for <gnats-bugs@sun-lamp.cs.berkeley.edu>; Wed, 4 Jan 1995 00:06:18 -0800
Message-Id: <199501040616.WAA00395@again.idiom.com>
Date: Tue, 3 Jan 1995 22:16:08 -0800
From: muir@idiom.com
Reply-To: muir@idiom.com
To: gnats-bugs@NetBSD.ORG
Subject: tar won't restore files that are not writable by owner
X-Send-Pr-Version: 3.2

>Number:         695
>Category:       bin
>Synopsis:       tar won't restore files that are not writable by owner
>Confidential:   no
>Severity:       serious
>Priority:       low
>Responsible:    bin-bug-people
>State:          closed
>Class:          sw-bug
>Submitter-Id:   net
>Arrival-Date:   Wed Jan 04 00:20:03 +0000 1995
>Closed-Date:    Sun Jan 05 23:02:53 +0000 1997
>Last-Modified:  Sun Jan 05 23:03:50 +0000 1997
>Originator:     David Muir Sharnoff
>Release:        1.0
>Organization:
Idiom Consulting
>Environment:

System: NetBSD again.idiom.com 1.0 NetBSD 1.0 (AGAIN) #2: Mon Jan 2 00:33:39 PST 1995 root@again.idiom.com:/usr/src/sys/arch/i386/compile/AGAIN i386

>Description:

	If you tar up files that aren't writable by owner and then
	try to untar them, tar fails to unpack them.  It fails with
	a Permission denied message.

	This is totally bogus.  The mode should be added to the file
	after it is created.

>How-To-Repeat:

>Fix:
>Release-Note:
>Audit-Trail:
State-Changed-From-To: open->closed 
State-Changed-By: cjs 
State-Changed-When: Sun Jan 5 15:02:53 PST 1997 
State-Changed-Why:  
This is fixed in NetBSD 1.2B: 

gnostic $ tar tvf tar 
-rw-r--r-- root/wsrc   3383912 Jan  4 21:07 1997 z1 
gnostic $ tar xvf tar 
z1 
gnostic $ ll 
total 13280 
-rw-r--r--  1 root  staff  3389440 Jan  5 14:50 tar 
-rw-r--r--  1 cjs   staff  3383912 Jan  4 21:07 z1 
gnostic $ uname -sr 
NetBSD 1.2B 
>Unformatted:

NetBSD Home
NetBSD PR Database Search

(Contact us) $NetBSD: query-full-pr,v 1.51 2026/08/10 02:28:17 riastradh Exp $
$NetBSD: gnats_config.sh,v 1.10 2026/05/13 22:00:09 riastradh Exp $
Copyright © 1994-2026 The NetBSD Foundation, Inc. ALL RIGHTS RESERVED.