[Slackbuilds-users] [BUG] SlackBuild templates
Robby Workman
rworkman at slackbuilds.org
Mon Jul 8 06:56:05 UTC 2013
On Fri, 21 Dec 2012 11:58:32 +0400
Serg Bormant <bormant at gmail.com> wrote:
> From: Serg Bormant <bormant at gmail.com>
> To: slackbuilds-users at slackbuilds.org
> Subject: [Slackbuilds-users] [BUG] SlackBuild templates
> Date: Fri, 21 Dec 2012 11:58:32 +0400
> Reply-To: "SlackBuilds.org Users List"
> <slackbuilds-users at slackbuilds.org> Sender:
> slackbuilds-users-bounces at slackbuilds.org
>
> Hi,
>
> Consider something like this in source tarball:
>
> $ mkdir test; cd test
> $ mkdir docs; touch docs/README docs/COPYING
> $ ln -s docs/* .
> $ ls -o *
> lrwxrwxrwx 1 user 12 Dec 21 11:45 COPYING -> docs/COPYING
> lrwxrwxrwx 1 user 11 Dec 21 11:45 README -> docs/README
>
> docs:
> total 0
> -rw-r--r-- 1 user 0 Dec 21 11:45 COPYING
> -rw-r--r-- 1 user 0 Dec 21 11:45 README
>
>
> *.SlackBuild templates offer this to sanitize permissions:
>
> find . \
> \( -perm 777 -o -perm 775 -o -perm 711 -o -perm 555 -o -perm 511 \) \
> -exec chmod 755 {} \; -o \
> \( -perm 666 -o -perm 664 -o -perm 600 -o -perm 444 -o -perm 440 -o
> -perm 400 \) \
> -exec chmod 644 {} \;
>
>
> But -perm 777 will fire on symlinks and will set eXecutable
> permissions to docs/COPYING and docs/README.
>
> Using "find -L ..." or "... ! -type l ..." can help to avoid this.
Yep, seems reasonable.
I've just committed this in my git branch of the templates repo;
we'll merge it to master at some point.
Thanks for the report and fix!
CC'd Pat because he may want to edit his templates too...
-RW
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 198 bytes
Desc: not available
URL: <http://lists.slackbuilds.org/pipermail/slackbuilds-users/attachments/20130708/731d69d2/attachment.asc>
More information about the SlackBuilds-users
mailing list