Don't follow symlinks
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
file-roller (Ubuntu) |
New
|
Undecided
|
Unassigned |
Bug Description
Binary package hint: file-roller
File Roller 2.20.1
tar (GNU tar) 1.18
gzip 1.3.12
DISTRIB_ID=Ubuntu
DISTRIB_
DISTRIB_
DISTRIB_
I discovered that when creating an archive of a user's home directory File Roller would run until it exhausts all free space even if the amount of data in the folder was relatively small. I traced the problem to symlinks in ~/.wine/dosdevices (like "c: -> ../drive_c" or "h: -> /home/user") which cause it to loop through other directories repeatedly. It appears to ignore links to directories owned by root but if they belong the the current user then it follows them. It also doesn't seem to kill tar and gzip correctly when the archive creation dialog is cancelled but this may be a different issue. Bug #124992 and bug #117066 may be related.
Furthermore, if you delete a symlink pointing to a directory from the archive, every file in the linked directory OUTSIDE the archive gets deleted!