Xref: utzoo comp.bugs.sys5:471 comp.unix.wizards:9690 comp.sys.att:3668
Path: utzoo!attcan!uunet!mcvax!rivm!ccea3
From: ccea3@rivm.UUCP (Adri Verhoef)
Newsgroups: comp.bugs.sys5,comp.unix.wizards,comp.sys.att
Subject: cpio -itv < problems
Keywords: pwd .. getcwd cpio "sh: pwd: cannot open .."
Message-ID: <913@rivm05.UUCP>
Date: 30 Jun 88 10:32:41 GMT
Organization: RIVM, Bilthoven, The Netherlands
Lines: 25

Bug: `cpio' does not work when it can't open one of it's parent directories.
Repeat-by:
	$ id
	uid=104(ccea3) gid=101(cce)
	$ cd /tmp
	$ mkdir tst1; cd tst1
	$ mkdir tst2; cd tst2
	$ chgrp bin ..
	$ chown bin ..
	$ pwd
	/tmp/tst1/tst2
	$ touch bugs.cpio
	$ cpio -itv < bugs.cpio
	sh: pwd: cannot open ..
	$ ls -ld . ..
	drwxr-x---   2 ccea3    cce           32 May 31 22:04 .
	drwxr-x---   3 bin      bin           48 May 31 22:04 ..

`cpio' should only display the contents of the file "bugs.cpio",
but it can't open one of its parent directories
and the file's contents will not be displayed.
Has this been fixed in any release?  (On System V.3.1 it still isn't.)

Adri verhoef,
mcvax!rivm!a3