diff --git a/.gitignore b/.gitignore index 49bac5ba7..753ea2bcc 100644 --- a/.gitignore +++ b/.gitignore @@ -1,4 +1,4 @@ -./bin/ +/bin/ capture.pcap tmp/ test/qcon.log diff --git a/pkg/fileserver/server_unsupported.go b/pkg/fileserver/server_unsupported.go index 02633ff3a..21a44acbe 100644 --- a/pkg/fileserver/server_unsupported.go +++ b/pkg/fileserver/server_unsupported.go @@ -8,5 +8,9 @@ import ( ) func StartShares(mounts map[string]uint64) error { + if len(mounts) == 0 { + return nil + } + return fmt.Errorf("this platform does not support sharing directories") }