Skip site navigation (1)Skip section navigation (2)
Date:      Wed, 6 Dec 2006 21:36:09 GMT
From:      Pete Slagle<freebsd-stable@box559.com>
To:        freebsd-gnats-submit@FreeBSD.org
Subject:   ports/106426: Privoxy port upgrade clobbers existing config file
Message-ID:  <200612062136.kB6La9Fj036876@www.freebsd.org>
Resent-Message-ID: <200612062200.kB6M0Xt3053928@freefall.freebsd.org>

next in thread | raw e-mail | index | archive | help

>Number:         106426
>Category:       ports
>Synopsis:       Privoxy port upgrade clobbers existing config file
>Confidential:   no
>Severity:       non-critical
>Priority:       low
>Responsible:    freebsd-ports-bugs
>State:          open
>Quarter:        
>Keywords:       
>Date-Required:
>Class:          change-request
>Submitter-Id:   current-users
>Arrival-Date:   Wed Dec 06 22:00:32 GMT 2006
>Closed-Date:
>Last-Modified:
>Originator:     Pete Slagle
>Release:        6.1-RELEASE-p11
>Organization:
>Environment:
6.1-RELEASE-p11
>Description:
Privoxy port clobbers existing config file

Upgrade of the www/privoxy port causes /usr/local/etc/privoxy/config to be lost when the upgrade process overwrites the existing version with a default version. Configuration information is lost.

>How-To-Repeat:
Install privoxy:
   su
   cd /usr/ports/www/privoxy
   make install clean

Customize privoxy with local settings:
   vi /usr/local/etc/privoxy/config

Upgrade privoxy:
   portupgrade -f privoxy

Note that local configuration settings have been clobbered:
   cat /usr/local/etc/privoxy/config

>Fix:
When privoxy is upgraded, if /usr/local/etc/privoxy/config already exists, then install the default config file with a different name, e.g. "config.default", instead of overwriting the existing file.


>Release-Note:
>Audit-Trail:
>Unformatted:



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?200612062136.kB6La9Fj036876>