From dcadbc2296660082203ef157f1fd333a7b2e1675 Mon Sep 17 00:00:00 2001 From: ian Date: Wed, 12 Nov 2003 00:44:56 +0000 Subject: [PATCH] @@ -1,3 +1,11 @@ +userv (1.0.4-1) unstable; urgency=low + + Minor portability fixes: + * Missing #include and } Thanks to report + * getgroups returns int, not gid_t (!). } from Peter Benie. + + -- + userv (1.0.3-2) unstable; urgency=low Debian packaging improvements (only): --- both.c | 1 + client.c | 2 +- debian/changelog | 8 ++++++++ overlord.c | 1 + 4 files changed, 11 insertions(+), 1 deletion(-) diff --git a/both.c b/both.c index 24a31ff..9fe88e9 100644 --- a/both.c +++ b/both.c @@ -30,6 +30,7 @@ #include #include #include +#include #include "config.h" #include "both.h" diff --git a/client.c b/client.c index 5f60d0e..ab3ae6f 100644 --- a/client.c +++ b/client.c @@ -809,7 +809,7 @@ static void security_init(void) { mypid= getpid(); if (mypid == (pid_t)-1) syscallerror("getpid"); myuid= getuid(); if (myuid == (uid_t)-1) syscallerror("getuid"); mygid= getgid(); if (mygid == (gid_t)-1) syscallerror("getgid"); - ngids= getgroups(0,0); if (ngids == (gid_t)-1) syscallerror("getgroups(0,0)"); + ngids= getgroups(0,0); if (ngids == -1) syscallerror("getgroups(0,0)"); gidarray= xmalloc(sizeof(gid_t)*ngids); if (getgroups(ngids,gidarray) != ngids) syscallerror("getgroups(ngids,)"); diff --git a/debian/changelog b/debian/changelog index 4395ce3..00f98a5 100644 --- a/debian/changelog +++ b/debian/changelog @@ -1,3 +1,11 @@ +userv (1.0.4-1) unstable; urgency=low + + Minor portability fixes: + * Missing #include and } Thanks to report + * getgroups returns int, not gid_t (!). } from Peter Benie. + + -- + userv (1.0.3-2) unstable; urgency=low Debian packaging improvements (only): diff --git a/overlord.c b/overlord.c index ae6fbfb..2715b79 100644 --- a/overlord.c +++ b/overlord.c @@ -25,6 +25,7 @@ #include #include #include +#include #include #include #include -- 2.30.2