[MacPorts] #16201: Upgrading openssh overwrites user-modified config files
#16201: Upgrading openssh overwrites user-modified config files ---------------------------------+------------------------------------------ Reporter: vinc17@macports.org | Owner: wms@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
#16201: Upgrading openssh overwrites user-modified config files ----------------------------------+----------------------------------------- Reporter: vinc17@macports.org | Owner: macports-tickets@lists.macosforge.org Type: defect | Status: new Priority: Normal | Milestone: Port Bugs Component: ports | Version: 1.6.0 Resolution: | Keywords: Port: | ----------------------------------+----------------------------------------- Changes (by wsiegrist@apple.com): * owner: wms@macports.org => macports-tickets@lists.macosforge.org Comment: Un-assigning due to dropping maintainership. -- Ticket URL: <http://trac.macports.org/ticket/16201#comment:1> MacPorts <http://www.macports.org/> Ports system for Mac OS
#16201: Upgrading openssh overwrites user-modified config files ---------------------------------+------------------------------------------ Reporter: vinc17@… | Owner: jwa@… Type: defect | Status: new Priority: Normal | Milestone: Component: ports | Version: 1.6.0 Keywords: | Port: openssh ---------------------------------+------------------------------------------ Changes (by vinc17@…): * owner: macports-tickets@… => jwa@… * port: => openssh Comment: I think it should be assigned to the new maintainer... The bug is still present in openssh @5.5p1 for both the config files in /etc/ssh and org.macports.OpenSSH.plist (which disables sshd). -- Ticket URL: <http://trac.macports.org/ticket/16201#comment:3> MacPorts <http://www.macports.org/> Ports system for Mac OS
#16201: Upgrading openssh overwrites user-modified config files ---------------------------------+------------------------------------------ Reporter: vinc17@… | Owner: jwa@… Type: defect | Status: new Priority: Normal | Milestone: Component: ports | Version: 1.6.0 Keywords: | Port: openssh ---------------------------------+------------------------------------------ Comment(by jon+mp@…): This bug recently bit me too, and my /opt/local/etc/ssh_config changed were wiped. -- Ticket URL: <https://trac.macports.org/ticket/16201#comment:4> MacPorts <http://www.macports.org/> Ports system for Mac OS
#16201: Upgrading openssh overwrites user-modified config files ---------------------------------+------------------------------------------ Reporter: vinc17@… | Owner: jwa@… Type: defect | Status: new Priority: Normal | Milestone: Component: ports | Version: 1.6.0 Keywords: | Port: openssh ---------------------------------+------------------------------------------ Comment(by ttelford.groups@…): This bug keeps biting me - every single time the OpenSSH configuration is updated. -- Ticket URL: <https://trac.macports.org/ticket/16201#comment:5> MacPorts <http://www.macports.org/> Ports system for Mac OS
#16201: Upgrading openssh overwrites user-modified config files -----------------------+---------------------- Reporter: vinc17@… | Owner: cal@… Type: defect | Status: assigned Priority: Normal | Milestone: Component: ports | Version: 1.6.0 Resolution: | Keywords: Port: openssh | -----------------------+---------------------- Changes (by cal@…): * status: new => assigned * owner: jwa@… => cal@… Comment: The openssh port in its current version preserves existing copies of `$prefix/etc/ssh/ssh{,d}_config`. I'm not sure why it should preserve modifications to the launchd plist, though. I consider this fixed, please re-open if you think different (pun intended!). -- Ticket URL: <https://trac.macports.org/ticket/16201#comment:7> MacPorts <http://www.macports.org/> Ports system for OS X
#16201: Upgrading openssh overwrites user-modified config files -----------------------+-------------------- Reporter: vinc17@… | Owner: cal@… Type: defect | Status: closed Priority: Normal | Milestone: Component: ports | Version: 1.6.0 Resolution: fixed | Keywords: Port: openssh | -----------------------+-------------------- Changes (by cal@…): * status: assigned => closed * resolution: => fixed -- Ticket URL: <https://trac.macports.org/ticket/16201#comment:8> MacPorts <http://www.macports.org/> Ports system for OS X
participants (1)
-
MacPorts