Project

General

Profile

« Previous | Next » 

Revision 265

fix_permissions: Don't chmod symlinks

View differences:

scripts/util/fix_permissions
8 8
chgrp --recursive --no-dereference $opts bien .
9 9
find . -type d -exec chmod $opts g+s "{}" \; # only dirs should be setgid
10 10
for perm in r w x; do # extend user perms to group
11
    find . -perm /u=$perm -exec chmod $opts g+$perm "{}" \;
11
    find . -not -type l -perm -u=$perm -exec chmod $opts g+$perm "{}" \;
12
        # don't chmod symlinks
12 13
done

Also available in: Unified diff