The following pull request was submitted through Github. It can be accessed and reviewed at: https://github.com/lxc/lxd/pull/4849
This e-mail was sent by the LXC bot, direct replies will not reach the author unless they happen to be subscribed to this list. === Description (from pull-request) === __{g,u}id_t are internal types Closes #4848. Signed-off-by: Christian Brauner <christian.brau...@ubuntu.com>
From c58e6cc91aab5a4b87de6da30dc0786a6e0b1d70 Mon Sep 17 00:00:00 2001 From: Christian Brauner <christian.brau...@ubuntu.com> Date: Mon, 30 Jul 2018 10:37:26 +0200 Subject: [PATCH] forkproxy: use correct types for {g,u}ids __{g,u}id_t are internal types Closes #4848. Signed-off-by: Christian Brauner <christian.brau...@ubuntu.com> --- lxd/main_forkproxy.go | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/lxd/main_forkproxy.go b/lxd/main_forkproxy.go index 90a60bc10..ca9d91cf4 100644 --- a/lxd/main_forkproxy.go +++ b/lxd/main_forkproxy.go @@ -590,7 +590,7 @@ func (c *cmdForkproxy) Run(cmd *cobra.Command, args []string) error { return err } - errno := C.setgid(C.__gid_t(gid)) + errno := C.setgid(C.gid_t(gid)) if errno < 0 { return fmt.Errorf("setgid: %v", errno) } @@ -602,7 +602,7 @@ func (c *cmdForkproxy) Run(cmd *cobra.Command, args []string) error { return err } - errno := C.setuid(C.__uid_t(uid)) + errno := C.setuid(C.uid_t(uid)) if errno < 0 { return fmt.Errorf("setuid: %v", errno) }
_______________________________________________ lxc-devel mailing list lxc-devel@lists.linuxcontainers.org http://lists.linuxcontainers.org/listinfo/lxc-devel