Skip to content

Host matching in fsconfig is too permissive #3

@r2evans

Description

@r2evans

If I have two hosts defined, something like

Host host
  blahblah
---
Host otherhost
  blahblah

and then call sshmount -w host, then it will bring in arguments from both host blocks.

Adding one more trailing --- to close out "otherhost" now results in no unique match!, which makes a little more sense, but two things then:

  • Not having a --- on the last host should not cause different behavior, I think; and
  • those two hosts are different, they should be treated differently

I suspect the issue is in fetchHostAttribute, looking.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions