From 6e4e557ca6f879627d877a4fc3815203a103e4ff Mon Sep 17 00:00:00 2001 From: ebiggers Date: Thu, 23 Jan 2020 13:42:10 -0800 Subject: privileges.go: remove a stale comment (#184) The workaround for Go versions before 1.10 was already removed by commit 3022c1603d96 ("Ensure setting user privileges is reversible"). --- security/privileges.go | 7 ------- 1 file changed, 7 deletions(-) (limited to 'security/privileges.go') diff --git a/security/privileges.go b/security/privileges.go index e5751b5..5bdd43c 100644 --- a/security/privileges.go +++ b/security/privileges.go @@ -32,13 +32,6 @@ package security // between OS-level threads while it's running. // // See also: https://github.com/golang/go/issues/1435 -// -// Also we need to wrap the libc functions in our own C functions rather than -// calling them directly because in the glibc headers (but not necessarily in -// the headers for other C libraries that may be used on Linux) they are -// declared to take __uid_t and __gid_t arguments rather than uid_t and gid_t. -// And while these are typedef'ed to the same underlying type, before Go 1.10, -// cgo maps them to different Go types. /* #define _GNU_SOURCE // for getresuid and setresuid -- cgit v1.2.3