Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 56931 - AMANDA ebuild should not write the file "/etc/amandates" if file already exists.
Summary: AMANDA ebuild should not write the file "/etc/amandates" if file already exists.
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: New packages (show other bugs)
Hardware: All Linux
: High critical (vote)
Assignee: Robin Johnson
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2004-07-13 10:54 UTC by DK Smith
Modified: 2004-07-15 00:58 UTC (History)
0 users

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 DK Smith 2004-07-13 10:54:20 UTC
In no case should there be a reason to write the file "/etc/amandates" if it already exists. Here's why:

a) If file exists and AMANDA package was never used by the User, then the file is empty and therefore no need to replace the empty file with another empty file.

b) If file exists and AMANDA package is in use by the User, then the file contains important mutable data written by the AMANDA system. Therefore the file should not be disturbed. 

Conclusion:

If "/etc/amandates" file exists, then do not include the file in the list to be updated via dispatch-conf or the former tool that performed same. 



Reproducible: Didn't try
Steps to Reproduce:
Occured when I emerge'd amanda.
Emerge system upgraded from version 2.4.4_p2-r1 to version 2.4.4-r3



Actual Results:  
dispath-conf asks to replace the config file... But, that is just it... It is
not a config file... It is mutable data which is written to disk by AMANDA system. 

Writing over this file adversely affects AMANDA state information. 


Expected Results:  
Conclusion:

If "/etc/amandates" file exists, then do not include the file in the list to be
updated via dispatch-conf or the former tool that performed same. 


The idiosyncrasy here that should not be forgotten is this: Unless AMANDA has
changed since I last configured it manually, AMANDA required the system
administrator to "touch" the file "/etc/amandates" into existence (and set the
appropriate file ownership attributes). IIRC, the AMANDA program would not
create this file on its own.
Comment 1 Robin Johnson archtester Gentoo Infrastructure gentoo-dev Security 2004-07-15 00:58:58 UTC
fixed in cvs.