bug-tar
[Top][All Lists]
Advanced

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

Re: [Bug-tar] [BUG] tar-1.13.25 sets unexpected time-stamp of directory


From: Paul Eggert
Subject: Re: [Bug-tar] [BUG] tar-1.13.25 sets unexpected time-stamp of directory
Date: 08 Sep 2003 10:33:14 -0700
User-agent: Gnus/5.09 (Gnus v5.9.0) Emacs/21.3

TAMUKI Shoichi <address@hidden> writes:

> skylark:~/work$ tar tvf test1.tar
> drwxr-xr-x tamuki/users      0 2001-12-01 15:00 testdir/
> -rw-r--r-- tamuki/users      0 2001-12-01 07:00 testdir/testfile1
> skylark:~/work$ tar tvf test2.tar
> drwxr-xr-x tamuki/users      0 2001-12-01 21:00 testdir/
> -rw-r--r-- tamuki/users      0 2001-12-01 09:00 testdir/testfile2
> skylark:~/work$ tar tvf test3.tar
> -rw-r--r-- tamuki/users      0 2001-12-01 11:00 testdir/testfile2
> ...
> skylark:~/work$ tar-1.13.25 xf test1.tar
> ...
> skylark:~/work$ tar-1.13.25 xf test2.tar
> skylark:~/work$ ls -fl --fu testdir
> total 2
> drwxr-xr-x   2 tamuki   users        1024 Mon Sep 08 18:40:17 2003 ./ #NG!

Thanks for your bug report.  That problem has been fixed in the latest
CVS version of GNU tar <http://savannah.gnu.org/projects/tar/>.

> skylark:~/work$ tar-1.13.25 xf test3.tar
> skylark:~/work$ ls -fl --fu testdir
> total 2
> drwxr-xr-x   2 tamuki   users        1024 Mon Sep 08 18:40:38 2003 ./ #NG!

I don't think this is a bug.  Tar 1.13 overwrote the existing
test3.tar, without affecting the parent directory.  But there were
some security problems with this, so the new behavior was instituted.
You can use the --overwrite option to get the old behavior.  But be
careful when using the `--overwrite' option, particularly when
combined with the `--absolute-names' (`-P') option, as this
combination can change the contents, ownership or permissions of any
file on your system.




reply via email to

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