Restore and symbolic link ownership

fixed

#1

I’ve looked through issues dealing with links but could not spot what I’m seeing.
On a linux system when performing a restore as root, the link ownership does not restore as the original owner, but as root.
Here is the repository contents:

ls -lR repository/
repository/:
total 0
drwxr-xr-x 2 root users 38 Aug 21 18:39 root_dir
drwxr-xr-x 2 payam users 38 Aug 21 18:39 user_dir

repository/root_dir:
total 188756
-rw-r--r-- 1 root root 193286016 Aug 21 18:57 file
lrwxrwxrwx 1 root root             4 Aug 21 18:39 link_to_file -> file

repository/user_dir:
total 188756
-rw-r--r-- 1 payam users 193286016 Aug 21 18:56 file
lrwxrwxrwx 1 payam users             4 Aug 21 18:39 link_to_file -> file

I then initialized a different directory for restore and perform a restore:

sudo duplicacy restore -r 4

and here is the end result:

ls -lR restore
restore:
total 0
drwxr-xr-x 2 root users 38 Aug 21 18:39 root_dir
drwxr-xr-x 2 payam users 38 Aug 21 18:39 user_dir

restore/root_dir:
total 188756
-rw-r--r-- 1 root root 193286016 Aug 21 18:57 file
lrwxrwxrwx 1 root root             4 Aug 21 19:05 link_to_file -> file

restore/user_dir:
total 188756
-rw-r--r-- 1 payam users 193286016 Aug 21 18:56 file
lrwxrwxrwx 1 root root                    4 Aug 21 19:05 link_to_file -> file

As can be seen, the link_to_file under the user_dir now belongs to root, rather than the user. This is not the expected behavior, is it?

As somewhat of an aside, when performing a restore (again, as root), it seems to me that all the restored directories originally belong to root. At the end of the restore process, they are chown’d to the proper owner. I’m curious as to why the ownership change for the directory does not happen immediately after the directory is re-created.


#3

Is this a bug? Does it matter?


#4

This does appear to be a bug. I’ll look into it.


#5

The bug has been fixed by