Base the installation permissions on the substituted file (not the original)
This commit is contained in:
parent
02aa787eab
commit
0f4e6fa428
@ -87,7 +87,7 @@ while [ $# -gt 0 ]; do
|
||||
if [ "$install" -eq 1 ]; then
|
||||
$DEBUG $MKDIR -- "$BINDIR" || exit 2
|
||||
mode="-m 0644"
|
||||
[ -x "$target.in" ] && mode="-m 0755"
|
||||
[ -x "$target" ] && mode="-m 0755"
|
||||
$DEBUG $INSTALL $mode "$target" "$BINDIR/$target" \
|
||||
|| exit 2
|
||||
continue
|
||||
|
Loading…
Reference in New Issue
Block a user