pike.git / src / modules / system / passwords.c

version» Context lines:

pike.git/src/modules/system/passwords.c:755: Inside #if defined(HAVE_GETGRENT) and #if defined(HAVE_GETPWNAM)
   */   void f_get_groups_for_user(INT32 arg)   {    struct group *gr = NULL;    struct passwd *pw;    struct array *a;    char *user = NULL; /* Keep compiler happy */    ONERROR err;    int base_gid;    -  check_all_args("get_groups_for_user",arg,BIT_INT | BIT_STRING, 0); +  check_all_args(NULL,arg,BIT_INT | BIT_STRING, 0);    pop_n_elems(arg-1);    a=low_allocate_array(0,10);    if(TYPEOF(sp[-1]) == T_INT)    {    int uid=sp[-1].u.integer;       LOCK_IMUTEX(&password_protection_mutex);       THREADS_ALLOW_UID();    pw=getpwuid(uid);