On 05:39 Mon 01 Oct , William Thomson (wltjr) wrote:
> 1.1 dev-db/firebird/firebird-2.0.3.12981.0-r2.ebuild
>
> file :
> http://sources.gentoo.org/viewcvs.py/gentoo-x86/dev-db/firebird/firebird-2.0.3.12981.0-r2.ebuild?rev=1.1&view=markup
> plain:
> http://sources.gentoo.org/viewcvs.py/gentoo-x86/dev-db/firebird/firebird-2.0.3.12981.0-r2.ebuild?rev=1.1&content-type=text/plain
> pkg_postinst() {
> # Hack to fix ownership/perms
> chown -fR firebird:firebird ${ROOT}/etc/firebird
> ${ROOT}/usr/share/firebird
> chmod 750 ${ROOT}/etc/firebird
ROOT needs quotes..
> pkg_config() {
> # if found /etc/security.gdb from previous install, backup, and restore
> as
> # /etc/security2.fdb
> if [ -f /etc/firebird/security.gdb ]
> then
> # if we have scurity2.fdb already, back it 1st
> if [ -f /etc/firebird/security2.fdb ] ; then
> cp /etc/firebird/security2.fdb
> /etc/firebird/security2.fdb.old
> fi
> gbak -B /etc/firebird/security.gdb /etc/firebird/security.gbk
> gbak -R /etc/firebird/security.gbk /etc/firebird/security2.fdb
> mv /etc/firebird/security.gdb /etc/firebird/security.gdb.old
> rm /etc/firebird/security.gbk
Shouldn't this whole function also be ROOT-safe?
Thanks,
Donnie
--
[EMAIL PROTECTED] mailing list