From freddy@murphy.planlos.de  Mon May 19 08:34:36 2003
Return-Path: <freddy@murphy.planlos.de>
Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125])
	by hub.freebsd.org (Postfix) with ESMTP id A696D37B401
	for <FreeBSD-gnats-submit@freebsd.org>; Mon, 19 May 2003 08:34:36 -0700 (PDT)
Received: from murphy.planlos.de (murphy.planlos.de [213.73.92.60])
	by mx1.FreeBSD.org (Postfix) with ESMTP id 683A143F93
	for <FreeBSD-gnats-submit@freebsd.org>; Mon, 19 May 2003 08:34:35 -0700 (PDT)
	(envelope-from freddy@murphy.planlos.de)
Received: from murphy.planlos.de (racoon@localhost [127.0.0.1])
	by murphy.planlos.de (8.12.9/8.12.9) with ESMTP id h4JFYa65083003
	for <FreeBSD-gnats-submit@freebsd.org>; Mon, 19 May 2003 17:34:37 +0200 (CEST)
	(envelope-from freddy@murphy.planlos.de)
Received: (from freddy@localhost)
	by murphy.planlos.de (8.12.9/8.12.9/Submit) id h4JFYaQa083002;
	Mon, 19 May 2003 17:34:36 +0200 (CEST)
	(envelope-from freddy)
Message-Id: <200305191534.h4JFYaQa083002@murphy.planlos.de>
Date: Mon, 19 May 2003 17:34:36 +0200 (CEST)
From: Frank Altpeter <frank@altpeter.de>
Reply-To: Frank Altpeter <frank@altpeter.de>
To: FreeBSD-gnats-submit@freebsd.org
Cc:
Subject: cvsd overwrites etc/cvsd/cvsd.conf without permission
X-Send-Pr-Version: 3.113
X-GNATS-Notify:

>Number:         52434
>Category:       ports
>Synopsis:       cvsd overwrites etc/cvsd/cvsd.conf without permission
>Confidential:   no
>Severity:       critical
>Priority:       medium
>Responsible:    freebsd-ports-bugs
>State:          closed
>Quarter:        
>Keywords:       
>Date-Required:  
>Class:          sw-bug
>Submitter-Id:   current-users
>Arrival-Date:   Mon May 19 08:40:08 PDT 2003
>Closed-Date:    Thu Jun 12 12:28:39 PDT 2003
>Last-Modified:  Thu Jun 12 12:28:39 PDT 2003
>Originator:     Frank Altpeter
>Release:        FreeBSD 4.8-STABLE i386
>Organization:
>Environment:
System: FreeBSD murphy.planlos.de 4.8-STABLE FreeBSD 4.8-STABLE #0: Fri May 16 14:40:24 CEST 2003 root@murphy.planlos.de:/usr/obj/usr/src/sys/kernconf.murphy i386


	
>Description:
	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.
>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.

>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.


>Release-Note:
>Audit-Trail:
State-Changed-From-To: open->closed 
State-Changed-By: pat 
State-Changed-When: Thu Jun 12 12:27:48 PDT 2003 
State-Changed-Why:  
Taken care of by PR ports/53099. 

http://www.freebsd.org/cgi/query-pr.cgi?pr=52434 
>Unformatted:
