Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 384217 - dispatch-conf: always overwrites a config file with newer one
Summary: dispatch-conf: always overwrites a config file with newer one
Status: RESOLVED FIXED
Alias: None
Product: Gentoo/Alt
Classification: Unclassified
Component: Prefix Support (show other bugs)
Hardware: All All
: Normal normal (vote)
Assignee: Gentoo Prefix
URL: http://prefix.gentooexperimental.org:...
Whiteboard:
Keywords: InVCS
Depends on:
Blocks:
 
Reported: 2011-09-23 16:53 UTC by MATSUI Tetsushi
Modified: 2012-03-08 02:59 UTC (History)
0 users

See Also:
Package list:
Runtime testing required: ---


Attachments
patch against dispatch-config (dispatch-conf-EPREFIX.patch,352 bytes, patch)
2011-09-23 16:55 UTC, MATSUI Tetsushi
Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description MATSUI Tetsushi 2011-09-23 16:53:34 UTC
Recently, dispatch-conf always overwrites a config file with newer one.

Reproducible: Always

Steps to Reproduce:
1. emerge something with a config file in etc
2. dispatch-conf

Actual Results:  
Without any output, dispatch-conf finishes its work (overwrites with the newer config file).

Expected Results:  
Show me the diff and ask me how to merge.

The environment variable CONFIG_PROTECT is /etc without EPREFIX, so the dispatch-conf script have to take care about EPREFIX, but it doesn't seem to do so.  A very old email (http://old.nabble.com/-PREFIX--config-protect-behavior-in-prefix-td4418222.html) hints me a fix.  A patch will follow.
Comment 1 MATSUI Tetsushi 2011-09-23 16:55:21 UTC
Created attachment 287523 [details, diff]
patch against dispatch-config
Comment 2 Fabian Groffen gentoo-dev 2011-09-23 18:25:14 UTC
fix will be in next portage version
Comment 3 Jeremy Olexa (darkside) (RETIRED) archtester gentoo-dev Security 2012-03-08 02:59:29 UTC
(In reply to comment #2)
> fix will be in next portage version

so long ago.