Thread View: comp.bugs.sys5
1 messages
1 total messages
Started by Chris Bertin
Mon, 15 Apr 1991 20:56
cpio unlinks directories
Author: Chris Bertin
Date: Mon, 15 Apr 1991 20:56
Date: Mon, 15 Apr 1991 20:56
21 lines
1338 bytes
1338 bytes
Cpio silently unlinks directories if you extract a file from an archive and that file happens to be a directory on your file system: If you have a directory '/x' and if you extract from an archive a file called '/x', the entire '/x' tree is replaced with the '/x' file. The same is also true if a file name matches any type of special file. Basically, cpio does an unlink() on that name and doesn't care what it unlinks. This is true on SVR3 and SVR4. It may also be true on SunOS and BSD, but I couldn't try it as super-user on those systems (yes, you do have to be root to unlink directories, so that problem only shows up if you run cpio as root). It is unclear to me what cpio should do in cases when there is a file type conflict between an archive and the file system, but I don't think cpio should EVER unlink directories. Chris -- Chris Bertin | chrisb@risky.Convergent.COM Unisys | or (408) 435-3762 | ...!uunet!pyramid!ctnews!risky!chrisb
Thread Navigation
This is a paginated view of messages in the thread with full content displayed inline.
Messages are displayed in chronological order, with the original post highlighted in green.
Use pagination controls to navigate through all messages in large threads.
Back to All Threads