After an evaluation, GNOME has moved from Bugzilla to GitLab. Learn more about GitLab.
No new issues can be reported in GNOME Bugzilla anymore.
To report an issue in a GNOME project, go to GNOME GitLab.
Do not go to GNOME Gitlab for: Bluefish, Doxygen, GnuCash, GStreamer, java-gnome, LDTP, NetworkManager, Tomboy.
Bug 374861 - Sabayon follows symlinks down the path.
Sabayon follows symlinks down the path.
Status: RESOLVED FIXED
Product: sabayon
Classification: Deprecated
Component: general
2.12.x
Other All
: Normal normal
: ---
Assigned To: Maintainers of sabayon
Maintainers of sabayon
: 452373 (view as bug list)
Depends on:
Blocks:
 
 
Reported: 2006-11-13 21:02 UTC by Daniel Hedblom
Modified: 2010-02-23 18:52 UTC
See Also:
GNOME target: ---
GNOME version: ---



Description Daniel Hedblom 2006-11-13 21:02:59 UTC
Please describe the problem:
If you make symlinks inside a profile the resulted profile will consist of everything that is contained in those symlinks at the time of the saving. Symlinking for eg. mounted dirs is thus not a good idea.

Steps to reproduce:
1. Create a new profile
2. Make a symlink on the desktop to a populated directory. 
3. Check inside the resulting profile and you will find copies of the files from the symlinked directory.


Actual results:
Symlinks are followed and copied.

Expected results:
The symlinks being copied for all users but the data be left in its original place.

Does this happen every time?
Every time ive tried it.

Other information:
Comment 1 Tim Butler 2007-01-18 12:45:12 UTC
I have also experienced this using Sabayon and can confirm this is a bug.  
Comment 2 Federico Mena Quintero 2007-01-18 18:11:55 UTC
I wonder if this happens because we use zip files as the storage for user profiles.

Zip files seem to have other problems as well --- they don't preserve file permissions.
Comment 3 Tim Butler 2007-01-23 09:58:36 UTC
I'm about to have a look at the code, but is their any reason to use zip files?  Just wondering if bzip2 would be a better system to use, especially considering the compression is better and it's open source.
Comment 4 Federico Mena Quintero 2007-01-24 01:55:32 UTC
Zip files make it easy to pack and unpack individual files, which is what Sabayon does.  I'm not completely sure that we actually need to be able to do that, though... the ProfileStorage is supposed to be an abstraction, and not to depend on a particular storage format.

To handle symlinks, we could create something special in the "metadata" file.
Comment 5 Scott Balneaves 2009-12-16 17:08:06 UTC
Right, I've got this on my "todo" list. We need metadata stored for:

Perms
Owner
Mode
Symlink/Not Symlink

etc.

Assigning to me.
Comment 6 Scott Balneaves 2009-12-16 17:21:03 UTC
*** Bug 452373 has been marked as a duplicate of this bug. ***
Comment 7 Scott Balneaves 2009-12-25 03:16:43 UTC
http://git.gnome.org/browse/sabayon/commit/?id=51ab3829063416a7762c923125ac901481964380

Symlinks are now stored in metadata
Comment 8 Warren Togami 2010-02-23 18:52:18 UTC
Permissions were fixed in Bug #608825.

Closing.