Bug 52434 - cvsd overwrites etc/cvsd/cvsd.conf without permission
Summary: cvsd overwrites etc/cvsd/cvsd.conf without permission
Status: Closed FIXED
Alias: None
Product: Ports & Packages
Classification: Unclassified
Component: Individual Port(s) (show other bugs)
Version: Latest
Hardware: Any Any
: Normal Affects Only Me
Assignee: freebsd-ports-bugs (Nobody)
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2003-05-19 16:40 UTC by Frank Altpeter
Modified: 2003-06-12 20:28 UTC (History)
0 users

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Frank Altpeter 2003-05-19 16:40:08 UTC
	When updating the cvsd port, it does overwrite the cvsd
	configuration file in etc/cvsd/cvsd.conf without permission.

	This seems to be because the port doesn't rely on a
	cvsd.conf.sample like it's the usual way to place configuration
	files, but does write directly to the main configuration.

Fix: 

Add "s|cvsd.conf|cvsd.conf.sample|g" to the REINPLACE_CMD
	in post-patch target within the ports Makefile.



P.S. This bug has already been reported to the maintainer long time ago,
but it seems to be lost or ignored.
How-To-Repeat: 	root@murphy:/usr/local/etc/cvsd 0# md5 cvsd.conf
	MD5 (cvsd.conf) = 85c6bd38d7e75dad92a605cf29bed870
	murphy:/usr/local/etc/cvsd 0# vi cvsd.conf
	root@murphy:/usr/local/etc/cvsd 0# md5 cvsd.conf
	MD5 (cvsd.conf) = e98810ac3cc5521d3daf50a5a5f52858
	murphy:/usr/local/etc/cvsd 0# cd
	murphy:~ 0# portupgrade -f cvsd
	murphy:~ 0# cd -
	root@murphy:/usr/local/etc/cvsd 0# md5 cvsd.conf 
	MD5 (cvsd.conf) = 85c6bd38d7e75dad92a605cf29bed870

	As you can see, modified cvsd.conf is getting killed and
	modifications are lost.
Comment 1 Patrick Li freebsd_committer freebsd_triage 2003-06-12 20:27:48 UTC
State Changed
From-To: open->closed

Taken care of by PR ports/53099.