Project

General

Profile

« Previous | Next » 

Revision 239

fix_permissions: Don't add group write perms to read-only files

View differences:

fix_permissions
7 7
opts='--quiet --changes'
8 8
chgrp --recursive --no-dereference $opts bien .
9 9
find . -type d -exec chmod $opts g+s "{}" \; # only dirs should be setgid
10
chmod --recursive $opts g+w .
10
find . -perm /u=w,g=w,o=w -exec chmod $opts g+w "{}" \; # extend any write perms

Also available in: Unified diff