Skip to content

Commit ef4b683

Browse files
authored
Merge pull request #114 from aronahl/issue-95
Fix from ChoSangWook for issue 95.
2 parents 6bc0d74 + 9aee16b commit ef4b683

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

netshare/netshare.go

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,7 @@ import (
99
"os"
1010
"path/filepath"
1111
"strconv"
12+
"syscall"
1213
)
1314

1415
const (
@@ -230,7 +231,7 @@ func start(dt drivers.DriverType, driver volume.Driver) {
230231
}
231232
fmt.Println(h.ServeTCP(dt.String(), addr, nil))
232233
} else {
233-
fmt.Println(h.ServeUnix(dt.String(), int(dt)))
234+
fmt.Println(h.ServeUnix(dt.String(), syscall.Getgid()))
234235
}
235236
}
236237

0 commit comments

Comments
 (0)