Sean Fulton <[EMAIL PROTECTED]> wrote:

> Yes, I tried that but discovered another issue after I mailed you. Tar 
> reports symbolic links, whereas find just lists the link, so the output 
> from tar and find won't be the same. (tar shows the link and the file it 
> is connected to). Which means the only way to do it is to trust tar to 
> report all of the files it finds and leave out cpio.

Hmm, I don't quite understand it. Here's a simple experiment:

I have a directory dir with the following contents:

$ ls -l dir
total 0
-rw-r--r--  1 gray staff 0 2006-01-18 14:46 file
lrwxrwxrwx  1 gray staff 4 2006-01-18 14:46 link -> file

Find shows:

$ find dir
dir
dir/file
dir/link

Now I create the archive:

$ tar cvf archive dir|sed 's,/$,,'
dir
dir/file
dir/link

And now I verify its contents:

$ tar tf arc|sed 's,/$,,'
dir
dir/file
dir/link

All cases (except ls, of course), produce the same output.

Am I missing something?

Regards,
Sergey


_______________________________________________
Bug-cpio mailing list
[email protected]
http://lists.gnu.org/mailman/listinfo/bug-cpio

Reply via email to