[MacPorts] #16201: Upgrading openssh overwrites user-modified config files
MacPorts
noreply at macports.org
Sun Aug 3 16:51:23 PDT 2008
#16201: Upgrading openssh overwrites user-modified config files
---------------------------------+------------------------------------------
Reporter: vinc17 at macports.org | Owner: wms at macports.org
Type: defect | Status: new
Priority: Normal | Milestone: Port Bugs
Component: ports | Version: 1.6.0
Keywords: |
---------------------------------+------------------------------------------
The openssh port shouldn't overwrite user-modified config files
(ssh_config and sshd_config), or should introduce some mechanism to do
config file upgrades safely. For instance, contents between some markers
could be preserved, e.g.
{{{
# BEGIN local configuration
...
# END local configuration
}}}
In such a case, such configuration should be near the beginning of the
file. The ssh_config man page says:
{{{
For each parameter, the first obtained value will be used. The
configu-
ration files contain sections separated by ``Host'' specifications,
and
that section is only applied for hosts that match one of the patterns
given in the specification. The matched host name is the one given
on
the command line.
Since the first obtained value for each parameter is used, more host-
spe-
cific declarations should be given near the beginning of the file,
and
general defaults at the end.
}}}
I don't know about sshd_config. I suppose that the same rule is applied.
--
Ticket URL: <http://trac.macports.org/ticket/16201>
MacPorts <http://www.macports.org/>
Ports system for Mac OS
More information about the macports-tickets
mailing list