relative pathname question!
Michael Greim
greim at sbsvax.UUCP
Mon Aug 22 19:07:04 AEST 1988
In article <20437 at watmath.waterloo.edu<, sahayman at watmath.waterloo.edu (Steve Hayman) writes:
< Sorry to leap into this discussion so late. Anyway, in
< article <591 at sbsvax.UUCP< greim at sbsvax.UUCP suggests
< using a little filter program to remove leading /'s from
< tar pathnames: (i.e. filter <the-tape | tar xf -)
<
[stuff deleted]
< Good idea, but isn't that kind of dangerous? What happens when you have
< a data file that happens to have a '/' and a '\0' in those
< positions? You don't want those moved around, you only
< want to diddle tar header blocks.
Yes, I wondered about that too. But I decided to worry about it only
after something went wrong. Nothing has so far.
I just tested the behaviour. Yes, it is wrong. Maybe I was just lucky
so far :-)
<
< A program to do this safely really needs to know a little more
< about tar-format - fiddle the header blocks only, not the
< data blocks. I think I have a version that will do that,
< I'll send it off to comp.sources.misc.
Ok. Am waiting for it.
<
< ..Steve Hayman
-mg
--
UUCP: ...!uunet!unido!sbsvax!greim | Michael T. Greim
or greim at sbsvax.UUCP | Universitaet des Saarlandes
CSNET: greim%sbsvax.uucp at Germany.CSnet| FB 10 - Informatik (Dept. of CS)
ARPA: greim%sbsvax.uucp at uunet.UU.NET | Bau 36, Im Stadtwald 15
voice: +49 681 302 2434 | D-6600 Saarbruecken 11, West Germany
# include <disclaimers/std.h>
More information about the Comp.unix.wizards
mailing list