NetBSD Problem Report #55821

From martin@aprisoft.de  Mon Nov 23 20:27:24 2020
Return-Path: <martin@aprisoft.de>
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 3EB761A921F
	for <gnats-bugs@gnats.NetBSD.org>; Mon, 23 Nov 2020 20:27:24 +0000 (UTC)
Message-Id: <20201123202714.965A75CC848@emmas.aprisoft.de>
Date: Mon, 23 Nov 2020 21:27:14 +0100 (CET)
From: martin@NetBSD.org
Reply-To: martin@NetBSD.org
To: gnats-bugs@NetBSD.org
Subject: tar can not extract base.tgz anymore (./dev/pts and mounted ptyfs)
X-Send-Pr-Version: 3.95

>Number:         55821
>Category:       bin
>Synopsis:       tar can not extract base.tgz anymore (./dev/pts and mounted ptyfs)
>Confidential:   no
>Severity:       critical
>Priority:       high
>Responsible:    bin-bug-people
>State:          closed
>Class:          sw-bug
>Submitter-Id:   net
>Arrival-Date:   Mon Nov 23 20:30:00 +0000 2020
>Closed-Date:    Sat Aug 05 16:38:46 +0000 2023
>Last-Modified:  Sat Aug 05 16:38:46 +0000 2023
>Originator:     Martin Husemann
>Release:        NetBSD 9.99.75
>Organization:
The NetBSD Foundation, Inc.
>Environment:
System: NetBSD whoever-brings-the-night.aprisoft.de 9.99.75 NetBSD 9.99.75 (WHOEVER) #350: Fri Nov 6 06:38:30 CET 2020 martin@seven-days-to-the-wolves.aprisoft.de:/work/src/sys/arch/sparc64/compile/WHOEVER sparc64
Architecture: sparc64
Machine: sparc64
>Description:

On a system with ptyfs mounted on /dev/pts, try to update from the base set
after I added /dev/pts to the set:

# stat /dev/pts 
31489 2 dr-xr-xr-x 2 root wheel 0 512 "Nov 23 20:34:49 2020" "Nov 23 18:39:49 2020" "Nov 23 20:34:50 2020" "Nov 23 13:18:38 2020" 4096 1 0 /dev/pts
# tar tvzf /mnt/sets/base.tgz ./dev/pts
drwxr-xr-x  0 root   wheel       0 Nov 23 18:39 ./dev/pts

.. so it should be a no-op. However, a "tar xpzf base.tgz" complains:

./dev/pts: Can't set user=0/group=0 for dev/pts
tar: Error exit delayed from previous errors.


>How-To-Repeat:
s/a

>Fix:
Make tar skip this kind of "error" silently?

>Release-Note:

>Audit-Trail:
From: "Christos Zoulas" <christos@netbsd.org>
To: gnats-bugs@gnats.NetBSD.org
Cc: 
Subject: PR/55821 CVS commit: src/sys/fs/ptyfs
Date: Tue, 24 Nov 2020 11:38:31 -0500

 Module Name:	src
 Committed By:	christos
 Date:		Tue Nov 24 16:38:31 UTC 2020

 Modified Files:
 	src/sys/fs/ptyfs: ptyfs_vnops.c

 Log Message:
 PR/55821: tar can not extract base.tgz anymore (./dev/pts and mounted ptyfs)
 Allow chown/chmod at the root of ptyfs.


 To generate a diff of this commit:
 cvs rdiff -u -r1.60 -r1.61 src/sys/fs/ptyfs/ptyfs_vnops.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->needs-pullups
State-Changed-By: dholland@NetBSD.org
State-Changed-When: Fri, 04 Jun 2021 17:16:35 +0000
State-Changed-Why:
fixed but should really go into -9


State-Changed-From-To: needs-pullups->pending-pullups
State-Changed-By: riastradh@NetBSD.org
State-Changed-When: Wed, 02 Aug 2023 15:27:06 +0000
State-Changed-Why:
pullup-9 #1703: https://releng.netbsd.org/cgi-bin/req-9.cgi?show=1703


From: "Martin Husemann" <martin@netbsd.org>
To: gnats-bugs@gnats.NetBSD.org
Cc: 
Subject: PR/55821 CVS commit: [netbsd-9] src/sys/fs/ptyfs
Date: Fri, 4 Aug 2023 13:34:58 +0000

 Module Name:	src
 Committed By:	martin
 Date:		Fri Aug  4 13:34:58 UTC 2023

 Modified Files:
 	src/sys/fs/ptyfs [netbsd-9]: ptyfs_vnops.c

 Log Message:
 Pull up following revision(s) (requested by riastradh in ticket #1703):

 	sys/fs/ptyfs/ptyfs_vnops.c: revision 1.61

 PR/55821: tar can not extract base.tgz anymore (./dev/pts and mounted ptyfs)

 Allow chown/chmod at the root of ptyfs.


 To generate a diff of this commit:
 cvs rdiff -u -r1.55.4.1 -r1.55.4.2 src/sys/fs/ptyfs/ptyfs_vnops.c

 Please note that diffs are not public domain; they are subject to the
 copyright notices on the relevant files.

State-Changed-From-To: pending-pullups->closed
State-Changed-By: riastradh@NetBSD.org
State-Changed-When: Sat, 05 Aug 2023 16:38:46 +0000
State-Changed-Why:
fixed in HEAD before 10 branch, pulled up to 9


>Unformatted:

NetBSD Home
NetBSD PR Database Search

(Contact us) $NetBSD: query-full-pr,v 1.47 2022/09/11 19:34:41 kim Exp $
$NetBSD: gnats_config.sh,v 1.9 2014/08/02 14:16:04 spz Exp $
Copyright © 1994-2023 The NetBSD Foundation, Inc. ALL RIGHTS RESERVED.