I agree that there is no good substitute for doing it right in the
first place. However, it appears that chroot might be able to solve the
problem in the case in point, although it seems a lot of trouble.
(Admittedly chroot and gen-ing up temp directories, etc, etc)
Speaking only for myself,
Joe Durusau
> > The simple way out of a problem like this is to
> >create whatever dir you need (temporarily), restore the file, move
> >it to it's final destination, and remember to use relative pathnames
> >next time. Much faster than finding special progs, etc.
> But if somebody likes to extract someting like /etc from another
> machine you your method does not work.
> I never use anything besides "star" if I have the choice. This is
> anytime when I am not forced to do a "quick hack" (< 5 Minutes)
> on a machine and then leave.
> >> >Ok, so now I know the mantra of don't use absolute pathes in Tar
> >> >files. But I have one that I did that is and really need to restore it
> >> >to another directory. Any ideas how I can do this?
> --
> URL: http://www.fokus.gmd.de/usr/schilling ftp://ftp.fokus.gmd.de/pub/unix