X-Git-Url: http://www.chiark.greenend.org.uk/ucgi/~ian/git?a=blobdiff_plain;f=servexec.c;h=a71b64f1e78bac9663f3c4f26c54ab357709b657;hb=af5c97dd0b7e37e1fb3ad1f7ac81fa31a48be7f8;hp=82b89e5470716f8e76438c46aff4fbcd4aa61b40;hpb=e9be60c490674ee7590f8a241a51e6b8317b894c;p=userv.git diff --git a/servexec.c b/servexec.c index 82b89e5..a71b64f 100644 --- a/servexec.c +++ b/servexec.c @@ -191,7 +191,7 @@ static const char *see_c_group(void) { static const char *seei_gid(int i) { static char buf[CHAR_BIT*sizeof(gid_t)/3+4]; - snyprintf(buf,sizeof(buf),"%d",calling_gids[i]); + snyprintf(buf,sizeof(buf),"%ld",(long)calling_gids[i]); return buf; } static const char *see_c_gid(void) { @@ -266,7 +266,8 @@ void execservice(const int synchsocket[], int clientfd) { fdarray[fd].holdfd= -1; } for (fd=0; fd= 0) + fdarray[fdarray[fd].realfd].holdfd= fd; } for (fd=0; fd