jmichaelh / xar

Automatically exported from code.google.com/p/xar
0 stars 0 forks source link

symlink ownership is not preserved on OS X #22

Closed GoogleCodeExporter closed 8 years ago

GoogleCodeExporter commented 8 years ago
Xar doesn't preserve the ownership information of symbolic links.  You can 
verify this by downloading backup bouncer (http://www.n8gray.org/code/
backup-bouncer) and running the test-suite.  Using ls to get details:

[n8gray@golux backup-bouncer]$ ls -l /Volumes/Src/15-symlink-ownership/
total 32
-rw-r--r--   1 n8gray  staff  14 May  1 16:59 some-file
lrwxr-xr-x   1 www     www    11 May  1 16:59 symlink1@ -> ./some-file
lrwxr-xr-x   1 root    wheel  11 May  1 16:59 symlink2@ -> ./some-file
lrwxr-xr-x   1 n8gray  staff  10 May  1 16:59 symlink3@ -> ./symlink1
[n8gray@golux backup-bouncer]$ ls -l /Volumes/Dst/70-xar/15-symlink-
ownership/
total 32
-rw-r--r--   1 n8gray  staff  14 May  1 16:59 some-file
lrwxr-xr-x   1 root    staff  11 May  2 01:15 symlink1@ -> ./some-file
lrwxr-xr-x   1 root    staff  11 May  2 01:15 symlink2@ -> ./some-file
lrwxr-xr-x   1 root    staff  10 May  2 01:15 symlink3@ -> ./symlink1

Note that symlink ownership can be set using lchown(2) on OS X 10.4 or 
later.  (I think it wasn't there in 10.3 but I could be wrong.)

Original issue reported on code.google.com by n8gray@gmail.com on 2 May 2007 at 8:26

GoogleCodeExporter commented 8 years ago
The code is already there, but the config.h.in is not setup to do the right 
defines
from the autoconf test.  This should be resolved with commit r134 in trunk.

Original comment by bbraun on 2 May 2007 at 7:11

GoogleCodeExporter commented 8 years ago
Great!  Works here.

-n8

Original comment by n8gray@gmail.com on 3 May 2007 at 1:34