8
0
mirror of https://github.com/FirebirdSQL/firebird.git synced 2025-01-23 07:23:04 +01:00

Frontported fix for CORE-1674: Wrong access rights in doc subdirectory

This commit is contained in:
alexpeshkoff 2008-01-04 15:14:54 +00:00
parent 7634e9aa0a
commit 74724c0566
3 changed files with 28 additions and 4 deletions

View File

@ -110,8 +110,11 @@ fixFilePermissions() {
chown $RunUser:$RunUser $i
chmod ug=rw,o= $i
done
cd ..
# fix up doc permissions
fixDocPermissions
cd $FBRootDir
}

View File

@ -506,6 +506,7 @@ removeLinksForBackCompatibility() {
removeIfOnlyAlink @libdir@/libgds.so.0
}
#------------------------------------------------------------------------
# For security reasons most files in firebird installation are
# root-owned and world-readable(executable) only (including firebird).
@ -520,6 +521,23 @@ MakeFileFirebirdWritable() {
}
#------------------------------------------------------------------------
# Set correct permissions for $FbRoot/doc tree
fixDocPermissions() {
cd $FBRootDir
for i in `find doc -print`; do
chown root:root $i
if [ -d $i ]; then
chmod 0755 $i
else
chmod 0644 $i
fi
done
}
#------------------------------------------------------------------------
# Run process and check status

View File

@ -64,8 +64,11 @@ fixFilePermissions() {
chown $RunUser:$RunUser $i
chmod ug=rw,o= $i
done
cd ..
# fix up doc permissions
fixDocPermissions
cd $FBRootDir
}