Hello,

> I was trying to extract a particular file using the
> -no-absolute-filename option and could not get it to work.

It is --no-absolute-filename, *not* -no-absolute-filename (two dashes
in front, not one).

> I tried:
> cpio -idv -no-absolute-filenames "/usr/sbin/lsof" < backup.cpio
> cpio -id -no-absolute-filenames "/usr/sbin/lsof" < backup.cpio
> cpio -idv -no-absolute-filenames /usr/sbin/lsof < backup.cpio
> cpio -idv -no-absolute-filenames "lsof" < backup.cpio

If you use --no-absolute-filename then the leading slash will not match
anything in the archive.  The correct usage is:

cpio -idv --no-absolute-filenames usr/sbin/lsof < backup.cpio

Regards,
Sergey

Reply via email to