NetBSD Problem Report #803
From gnats Fri Feb 17 19:51:41 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 TAA09112 for <gnats-bugs@sun-lamp.cs.berkeley.edu>; Fri, 17 Feb 1995 19:51:39 -0800
Message-Id: <199502180303.OAA03588@zen.void.oz.au>
Date: Sat, 18 Feb 1995 14:03:15 +1100
From: "Simon J. Gerraty" <sjg@zen.void.oz.au>
Reply-To: sjg@zen.void.oz.au
To: gnats-bugs@netbsd.org
Subject: cpio -p does wrong thing with symlinks
X-Send-Pr-Version: 3.2
>Number: 803
>Category: kern
>Synopsis: when doing cpio -p, directories pointed to by symlinks are stuffed
>Confidential: no
>Severity: serious
>Priority: medium
>Responsible: kern-bug-people
>State: closed
>Class: sw-bug
>Submitter-Id: net
>Arrival-Date: Fri Feb 17 20:05:03 +0000 1995
>Closed-Date: Sun Feb 18 12:34:58 +0000 1996
>Last-Modified: Sun Feb 18 12:35:54 +0000 1996
>Originator: Simon J. Gerraty
>Release: 1.0
>Organization:
Zen Programming...
>Environment:
System: NetBSD zen.void.oz.au 1.0 NetBSD 1.0 (ZEN) #6: Tue Dec 13 09:55:20 EST 1994 root@zen.void.oz.au:/usr/src/sys/arch/i386/compile/ZEN i386
Plus patches 1-6
>Description:
I suspect that this is related to the following
Subject: Re: kern/719: users cannot remove symlinks from /tmp!
Subject: Re: kern/642: lstat() returns wrong inode for symlink?
Basically due to a disk showing faults I did:
cd /var find . -print | cpio -pdum /newvar
Interestingly all directories (even on other filesystems) pointed to
by symlinks under /var had their owner and permissions set to those of
/var (drwxr-xr-x 18 root wheel 512 Feb 18 00:48 /var) which is not
very good for /var/spool/news,/var/spool/nn,/var/spool/lock etc
I think I'll rip out the 4.4BSD symlink semantics on all my 1.0
systems (as per the patch I submitted earlier).
I'm yet to see _one_ reason for the behaviour and I've found at least
three different reasons for _not_ having it.
>How-To-Repeat:
>Fix:
>Release-Note:
>Audit-Trail:
State-Changed-From-To: open->feedback
State-Changed-By: jtc
State-Changed-When: Thu Feb 8 02:22:37 1996
State-Changed-Why:
I don't quite understand what bug this problem report is describing.
I just moved a directory hierarchy with symlinks and it does seem to
the right thing (after the broken symlink semantics were reverted).
Can you confirm this?
State-Changed-From-To: feedback->closed
State-Changed-By: mycroft
State-Changed-When: Sun Feb 18 07:34:58 EST 1996
State-Changed-Why:
Fixed.
>Unformatted:
(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.