[Bug 1585] New: Allow an `Include' option which reads another config file in place and does not error out when `Include' file not readable

bugzilla-daemon at bugzilla.mindrot.org bugzilla-daemon at bugzilla.mindrot.org
Thu Apr 2 21:29:48 EST 2009


https://bugzilla.mindrot.org/show_bug.cgi?id=1585

           Summary: Allow an `Include' option which reads another config
                    file in place and does not error out when `Include'
                    file not readable
           Product: Portable OpenSSH
           Version: 5.2p1
          Platform: All
        OS/Version: All
            Status: NEW
          Keywords: low-hanging-fruit, patch
          Severity: enhancement
          Priority: P3
         Component: ssh
        AssignedTo: unassigned-bugs at mindrot.org
        ReportedBy: gavinbeatty at gmail.com


Created an attachment (id=1623)
 --> (http://bugzilla.mindrot.org/attachment.cgi?id=1623)
Attached is a patch for an almost complete implementation. All that
remains is the "file not readable is not an error" logic.

Adding the following to your config file should read the named file in
place.

Include "~/.ssh/config.customer1"

If the file is not found, only a warning should be given, like so:

warning("%s line %d: Include file \"%s\" not found - skipping.", ...);

~/ and ~username expansion should be available.

Attached is a patch for an almost complete implementation. All that
remains is the "file not readable is not an error" logic.

-- 
Configure bugmail: https://bugzilla.mindrot.org/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are watching the assignee of the bug.


More information about the openssh-bugs mailing list