stdinserver: fixup ccd062e: assert socket is in private directory

This commit is contained in:
Christian Schwarz
2018-02-17 14:12:44 +01:00
parent ccd062e238
commit f3d3a7f5f8
2 changed files with 30 additions and 12 deletions
+4
View File
@@ -32,6 +32,10 @@ func parseStdinserverListenerFactory(c JobParsingContext, i map[string]interface
func (f *StdinserverListenerFactory) Listen() (al AuthenticatedChannelListener, err error) {
if err = PreparePrivateSockpath(f.sockpath); err != nil {
return nil, err
}
l, err := netssh.Listen(f.sockpath)
if err != nil {
return nil, err