Subject: Bug#4194: tar ajusts uid/mtime of symlink destination

From: "Brian C. White" <[email-masked]>
Date: Mon, 19 Aug 1996 17:58:41 -0400

Package: tar
Version: 1.11.11-1

It seems the newest version of 'tar' sets (during extract) the uid/gid and
the mtime of the file a symlink points to instead of the symlink itself.

Here is a source directory:

-rw-r--r--   1 bcwhite  verisim      5731 Jul 21 16:02 database-gdbm.cc
-rw-r--r--   1 bcwhite  verisim      1114 Jul  7 00:27 database-gdbm.h
lrwxrwxrwx   1 bcwhite  verisim        16 Jul 14 13:56 database.cc -> database-gdbm.cc
lrwxrwxrwx   1 bcwhite  verisim        15 Jul 14 13:56 database.h -> database-gdbm.h

Here is output of 'tar' during extract:

ferret/database-gdbm.h
ferret/database.cc
tar: ferret/database.cc: Could not change access and modification times: No such file or directory
tar: ferret/database.cc: Cannot change mode to 0755: No such file or directory
ferret/database.h
ferret/database-gdbm.cc

The extracted directory has:

-rw-r--r--   1 bcwhite  verisim      5731 Jul 21 16:02 database-gdbm.cc
-rwxr-xr-x   1 bcwhite  verisim      1114 Jul 14 13:56 database-gdbm.h*
lrwxrwxrwx   1 bcwhite  verisim        16 Aug 19 17:45 database.cc -> database-gdbm.cc
lrwxrwxrwx   1 bcwhite  verisim        15 Aug 19 17:45 database.h -> database-gdbm.h*

(note the permissions of "database-gdbm.h")

                                        Brian
                               ( [email-masked] )

-------------------------------------------------------------------------------
    In theory, theory and practice are the same.  In practice, they're not.