mirror of
https://gitea.com/gitea/runner.git
synced 2026-08-29 23:37:45 +00:00
fix #102 - add windows support
This commit is contained in:
+1
-1
@@ -17,7 +17,7 @@ func UnixCredentials(ucred *Ucred) []byte {
|
||||
h.Level = SOL_SOCKET
|
||||
h.Type = SCM_CREDENTIALS
|
||||
h.SetLen(CmsgLen(SizeofUcred))
|
||||
*(*Ucred)(h.data(0)) = *ucred
|
||||
*((*Ucred)(cmsgData(h))) = *ucred
|
||||
return b
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user