From owner-freebsd-ports-bugs@FreeBSD.ORG Mon May 19 08:40:10 2003 Return-Path: Delivered-To: freebsd-ports-bugs@hub.freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id F0C4C37B401 for ; Mon, 19 May 2003 08:40:10 -0700 (PDT) Received: from freefall.freebsd.org (freefall.freebsd.org [216.136.204.21]) by mx1.FreeBSD.org (Postfix) with ESMTP id 3500F43FBF for ; Mon, 19 May 2003 08:40:09 -0700 (PDT) (envelope-from gnats@FreeBSD.org) Received: from freefall.freebsd.org (gnats@localhost [127.0.0.1]) by freefall.freebsd.org (8.12.9/8.12.9) with ESMTP id h4JFe9Up047528 for ; Mon, 19 May 2003 08:40:09 -0700 (PDT) (envelope-from gnats@freefall.freebsd.org) Received: (from gnats@localhost) by freefall.freebsd.org (8.12.9/8.12.9/Submit) id h4JFe9fP047527; Mon, 19 May 2003 08:40:09 -0700 (PDT) Resent-Date: Mon, 19 May 2003 08:40:09 -0700 (PDT) Resent-Message-Id: <200305191540.h4JFe9fP047527@freefall.freebsd.org> Resent-From: FreeBSD-gnats-submit@FreeBSD.org (GNATS Filer) Resent-To: freebsd-ports-bugs@FreeBSD.org Resent-Reply-To: FreeBSD-gnats-submit@FreeBSD.org, Frank Altpeter Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id A696D37B401 for ; 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 ; 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 ; 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 To: FreeBSD-gnats-submit@FreeBSD.org X-Send-Pr-Version: 3.113 Subject: ports/52434: cvsd overwrites etc/cvsd/cvsd.conf without permission X-BeenThere: freebsd-ports-bugs@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list Reply-To: Frank Altpeter List-Id: Ports bug reports List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 19 May 2003 15:40:11 -0000 >Number: 52434 >Category: ports >Synopsis: cvsd overwrites etc/cvsd/cvsd.conf without permission >Confidential: no >Severity: critical >Priority: medium >Responsible: freebsd-ports-bugs >State: open >Quarter: >Keywords: >Date-Required: >Class: sw-bug >Submitter-Id: current-users >Arrival-Date: Mon May 19 08:40:08 PDT 2003 >Closed-Date: >Last-Modified: >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: >Unformatted: