mirror of
https://github.com/moparisthebest/pacman
synced 2024-11-15 13:55:09 -05:00
makepkg: fix permissions on install and changelog files
The .INSTALL and .CHANGELOG files in a package retained the permissions that they had in $startdir. Do a chmod after copying to ensure that the permissions are sane. Signed-off-by: Allan McRae <allan@archlinux.org> Signed-off-by: Dan McGee <dan@archlinux.org>
This commit is contained in:
parent
52c3f871db
commit
3cd237dec3
@ -1013,6 +1013,7 @@ create_package() {
|
|||||||
if [[ -n $install ]]; then
|
if [[ -n $install ]]; then
|
||||||
msg2 "$(gettext "Adding install script...")"
|
msg2 "$(gettext "Adding install script...")"
|
||||||
cp "$startdir/$install" .INSTALL
|
cp "$startdir/$install" .INSTALL
|
||||||
|
chmod 644 .INSTALL
|
||||||
comp_files="$comp_files .INSTALL"
|
comp_files="$comp_files .INSTALL"
|
||||||
fi
|
fi
|
||||||
|
|
||||||
@ -1020,6 +1021,7 @@ create_package() {
|
|||||||
if [[ -n $changelog ]]; then
|
if [[ -n $changelog ]]; then
|
||||||
msg2 "$(gettext "Adding package changelog...")"
|
msg2 "$(gettext "Adding package changelog...")"
|
||||||
cp "$startdir/$changelog" .CHANGELOG
|
cp "$startdir/$changelog" .CHANGELOG
|
||||||
|
chmod 644 .CHANGELOG
|
||||||
comp_files="$comp_files .CHANGELOG"
|
comp_files="$comp_files .CHANGELOG"
|
||||||
fi
|
fi
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user