From 1f5dfe033fdc1f677b6ffca7d2a0fd208730a62d Mon Sep 17 00:00:00 2001
From: "FeRD (Frank Dana)" <ferdnyc@gmail.com>
Date: Wed, 12 Dec 2018 19:26:17 -0500
Subject: [PATCH] inst.sh: Don't set files executable

inst.sh was running install-sh on directory contents recursively,
without setting a file mode. Since its default is 0755, that left
far too many data files executable. Changed to pass `-m 0644`
when installing regular files. (Directories will still get 0755.)
---
 cinelerra-5.1/inst.sh | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/cinelerra-5.1/inst.sh b/cinelerra-5.1/inst.sh
index bbfee54..ec20eee 100755
--- a/cinelerra-5.1/inst.sh
+++ b/cinelerra-5.1/inst.sh
@@ -7,7 +7,7 @@ $mkinstalldirs "$dir"
 if [ "$*" = "*" ]; then exit; fi
 
 for f in "$@"; do
-  if [ -f "$f" ]; then $install_sh -c "$f" "$dir"; continue; fi
+  if [ -f "$f" ]; then $install_sh -m 0644 -c "$f" "$dir"; continue; fi
   if [ -d "$f" ]; then ( cd $f; $inst_sh "$dir/$f" * )
   else echo "*** Error - install $f in $dir failed." 1>&2; exit 1; fi
 done
-- 
2.19.2

