bug-gnu-utils
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: --directory= bug


From: Stepan Kasal
Subject: Re: --directory= bug
Date: Mon, 27 Jan 2003 15:14:48 +0100
User-agent: Mutt/1.2.5.1i

Hello,

On Sun, Jan 26, 2003 at 08:27:29AM +0000, Jude DaShiell wrote:
> the --directory= option in the version of gnu tar that went out with gcc
> 2.95 and slackware 8.0 does not perform as documented.  I found this out by
> trying to backup the /boot directory first and upon testing the archive
> found only files I knew to be only located in /root on my system.

what exactly is the version number of your tar?
You can find out by calling ``tar --version''.

I've performed this test with my tar 1.13.25:

[kasal tar-1.13.25]$ tar cf bkp.tar --directory=src . --directory=../doc .
[kasal tar-1.13.25]$ tar tf bkp.tar
./
./arith.h
./common.h
./rmt.h
./system.h
./tar.h
./Makefile.am
./Makefile.in
./rmt.c
./buffer.c
./compare.c
./create.c
./delete.c
./extract.c
./incremen.c
./list.c
./mangle.c
./misc.c
./names.c
./rtapelib.c
./tar.c
./update.c
./
./Makefile.am
./Makefile.in
./mdate-sh
./stamp-vti
./texinfo.tex
./version.texi
./tar.texi
./convtexi.pl
./fdl.texi
./freemanuals.texi
./getdate.texi
./header.texi
./tar.info


This shows that you either have to use absolute paths with the --directory
option, or you have to make the paths relative to the previous tar's cwd.

Please explain me the bug if I've missed something.

Stepan




reply via email to

[Prev in Thread] Current Thread [Next in Thread]