Package: cpio
Version: 2.6-4
Followup-For: Bug #326090

It's much worse than just that cpio -p does not copy dangling symlinks.
Try adding to your archive a symlink that's not dangling, but whose
target file is not in the archive.  In this case, cpio dereferences the
link and includes the pointed-to file in the archive rather than the
link!

e.g.:

ln -sf /proc/kcore /dev/core
find /dev -xdev -true -print | cpio -o -H ustar -a | gzip -c -9 > 
/tmp/dev.tar.gz

You'll find the entire contents of your RAM in /tmp/dev.tar.gz if you
execute that as root.  /dev/core gets dereferenced, and the *entire*
contents of /proc/kcore gets added to the archive.  Not what I'm looking
for in a disk backup solution.


-- System Information:
Debian Release: testing/unstable
  APT prefers unstable
  APT policy: (500, 'unstable'), (500, 'stable')
Architecture: i386 (i686)
Shell:  /bin/sh linked to /bin/bash
Kernel: Linux 2.4.29
Locale: LANG=C, LC_CTYPE=C (charmap=ANSI_X3.4-1968)

Versions of packages cpio depends on:
ii  libc6                         2.3.5-6    GNU C Library: Shared libraries an

cpio recommends no packages.

-- no debconf information


-- 
To UNSUBSCRIBE, email to [EMAIL PROTECTED]
with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]

Reply via email to