[OE-core] [PATCH 5/5] package.bbclass: fixup_perms - symlink bug fix

Phil Blundell philb at gnu.org
Mon Jul 25 19:42:48 UTC 2011


On Mon, 2011-07-25 at 14:08 -0500, Mark Hatle wrote:
> symlinks do not have an ownership/group on most filesystems.  They automatically
> inherit the uid/gid of the target.  (I also believe this is the same for
> permissions.)

I'm not sure about "most" filesystems, but as far as I know all the
standard Linux filesystems do support UIDs and GIDs for symlinks.

> How do you change the mode of the link itself?  As far as I understood this
> can't be done on most filesystems.  I'd be happy to attempt to change the
> owner/group (and mode) of symlinks if there is a way not to follow the link.

You can't (in POSIX) change the mode of the link but, as someone else
already noted, you can change the ownership via lchown(2).  See:

http://pubs.opengroup.org/onlinepubs/009695399/functions/lchown.html

p.





More information about the Openembedded-core mailing list