matching links in /z/ now too
authorChris Koeritz <fred@gruntose.com>
Fri, 25 Jan 2019 08:49:46 +0000 (03:49 -0500)
committerChris Koeritz <fred@gruntose.com>
Fri, 25 Jan 2019 08:49:46 +0000 (03:49 -0500)
scripts/security/cool_permissionator.sh

index ab5e850bfbe333fbb71efae4a4af1e4d40a3429f..c6f9bd86cdd319a6fd6f5535067ff47e86010a59 100644 (file)
@@ -51,7 +51,7 @@ function reapply_cool_permissions()
         /usr/local/${cooluser} \
         /home/games \
         $arch_addin; do
-    if [ -d "$dirname" ]; then
+    if [ -d "$dirname" -o -L "$dirname" ]; then
       echo "revising ownership on '$dirname'"
       sudo chown -R ${cooluser}:${cooluser} "$dirname"
       continue_on_error "chowning for ${cooluser}: $dirname"