[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Bug-tar] tar-1.14.90 can't handle device nodes properly with -p
From: |
Mike Frysinger |
Subject: |
[Bug-tar] tar-1.14.90 can't handle device nodes properly with -p |
Date: |
Mon, 11 Oct 2004 10:46:58 -0400 |
User-agent: |
KMail/1.7 |
when extracting device nodes from a tarball and using -p, permissions arent
restored properly to non-existent devices ... this worked in 1.14 and
earlier ;)
test case:
# mkdir test
# cd test
# mknod node c 0 0
# chown bin:wheel node
# chmod 777 node
# cat node
cat: node: No such device or address
# ls -l node
crwxrwxrwx 1 bin wheel 0, 0 Oct 11 node
# tar -jcpf tarball.tbz2 node
# mkdir dir
# tar -jxpf tarball.tbz2 -C dir
tar: node: Cannot change ownership to uid 1, gid 10: No such device or address
tar: Error exit dealyed from previous errors
# ls -l dir/node
crwxrwxrwx 1 root root 0, 0 Oct 11 dir/node
-mike
- [Bug-tar] tar-1.14.90 can't handle device nodes properly with -p,
Mike Frysinger <=