Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 24158 - amanda-ebuild overwrites config file
Summary: amanda-ebuild overwrites config file
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All Linux
: High normal
Assignee: Robin Johnson
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2003-07-09 05:21 UTC by Stefan Sarzio
Modified: 2003-07-10 14:24 UTC (History)
1 user (show)

See Also:
Package list:
Runtime testing required: ---


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Stefan Sarzio 2003-07-09 05:21:28 UTC
s. actual vs. expected results

Problem occured with 2.4.4-r1, but I suspect all versions have the same problem

Reproducible: Always
Steps to Reproduce:
1. emerge --update amanda
2.
3.

Actual Results:  
/var/spool/amanda/.amandahosts is overwritten

Expected Results:  
should IMHO be "covered" by etc-update (meaning: the corresponding philosophy of
protected config files)

Portage 2.0.48-r1 (default-x86-1.4, gcc-3.2.3, glibc-2.3.2-r1)
=================================================================
System uname: 2.4.20-openmosix-r4 i686 AMD-K7(tm) Processor
GENTOO_MIRRORS="http://gentoo.oregonstate.edu
http://distro.ibiblio.org/pub/Linux/distributions/gentoo"
CONFIG_PROTECT="/etc /var/qmail/control /usr/share/config
/usr/kde/2/share/config /usr/kde/3/share/config /var/bind /usr/X11R6/lib/X11/xkb
/var/spool/amanda/.amandahosts"
CONFIG_PROTECT_MASK="/etc/gconf /etc/env.d"
PORTDIR="/usr/portage"
DISTDIR="/usr/portage/distfiles"
PKGDIR="/usr/portage/packages"
PORTAGE_TMPDIR="/var/tmp"
PORTDIR_OVERLAY="/usr/local/portage"
USE="x86 3dnow libg++ mikmod berkdb slang esd vdr_vfat mmx apm -pcmcia pnp nls
readline -trusted -cdr -cups snmp slp -mozilla -X -motif -dga -opengl -xv -gpm
-kde -qt -qtmt -arts gtk -gtk2 -gnome -gb -bonobo -libwww libgda -gtkhtml -tcltk
ncurses sdl svga imlib lcms gif wmf jpeg png tiff gd avi oggvorbis mpeg
quicktime -alsa oss dvd -xmms ggz pam ssl -crypt -imap -maildir -mbox tcpd
-spell -truetype -xml -xml2 -pdflib -java -jikes python perl -gdbm -doc -odbc
mysql -innodb zlib -galeon -openoffice encode -samba apache apache2 php mod_php
mod_ssl -plotutils"
COMPILER="gcc3"
CHOST="i686-pc-linux-gnu"
CFLAGS="-march=athlon -O3 -pipe"
CXXFLAGS="-O2 -mcpu=i686 -pipe"
ACCEPT_KEYWORDS="x86 ~x86"
MAKEOPTS="-j6"
AUTOCLEAN="yes"
SYNC="rsync://rsync.salze.net/gentoo-x86-portage"
FEATURES="sandbox buildpkg ccache userpriv usersandbox"
Comment 1 Martin Holzer (RETIRED) gentoo-dev 2003-07-09 08:52:17 UTC
CONFIG_PROTECT="/etc /var/qmail/control /usr/share/config
/usr/kde/2/share/config /usr/kde/3/share/config /var/bind /usr/X11R6/lib/X11/xkb
/var/spool/amanda/.amandahosts"

CONFIG_PROTECT should contain only dirs, no files
-> user error
Comment 2 Stefan Sarzio 2003-07-10 00:28:40 UTC
Since it's not been me (the user) who added the "/var/spool/amanda/.amandahosts"...how can it be my fault?? :-(
Comment 3 Robin Johnson archtester Gentoo Infrastructure gentoo-dev Security 2003-07-10 14:24:51 UTC
My bad.
I've now moved the .amandahosts file to /etc/amanda/amandahosts
and put a symlink at /var/spool/amanda/.amandahosts back to it.
This provides CONFIG_PROTECT without it being there explictly.

I only wanted to protect a single file in /var/spool/amanda, hence I put an absolute path with a filename in previously.

Fixed in CVS now.