Turn off debug in getsockname.c
allow NULL for setgroups argument
This commit is contained in:
parent
c3a88d15d8
commit
1116853ae9
|
@ -21,7 +21,7 @@
|
||||||
#include <net/gen/udp_io.h>
|
#include <net/gen/udp_io.h>
|
||||||
|
|
||||||
|
|
||||||
#define DEBUG 1
|
#define DEBUG 0
|
||||||
|
|
||||||
/*
|
/*
|
||||||
getsockname...
|
getsockname...
|
||||||
|
|
|
@ -9,7 +9,7 @@ setgroups.c
|
||||||
|
|
||||||
int setgroups(int ngroups, const gid_t *gidset)
|
int setgroups(int ngroups, const gid_t *gidset)
|
||||||
{
|
{
|
||||||
if(!gidset || ngroups > 1) {
|
if(ngroups > 1) {
|
||||||
/* Supplementary groups not implemented */
|
/* Supplementary groups not implemented */
|
||||||
errno= EINVAL;
|
errno= EINVAL;
|
||||||
return -1;
|
return -1;
|
||||||
|
|
Loading…
Reference in a new issue