Date: Mon, 23 Jun 1997 22:33:33 +0000 () From: Miguel Angel Sagreras <msagre@cactus.fi.uba.ar> To: emulation@freebsd.org Subject: ORACLE problem with ibcs2_getgroups Message-ID: <Pine.BSF.3.91.970623222929.18537A-100000@cactus.fi.uba.ar>
next in thread | raw e-mail | index | archive | help
ORACLE can't be installed because the ibcs2_getgroups has a problem when the program wants to find out which are the groups the user belongs to, This is the diff for ibcs2_misc.c which corrects the problem. 583d582 < iset = stackgap_alloc(&sg, SCARG(uap, gidsetsize)*sizeof(ibcs2_gid_t)); 586,591c585,594 < for (i = 0, gp = SCARG(&sa, gidset); i < retval[0]; i++) < iset[i] = (ibcs2_gid_t)*gp++; < if (retval[0] && (error = copyout((caddr_t)iset, < (caddr_t)SCARG(uap, gidset), < sizeof(ibcs2_gid_t) * retval[0]))) < return error; --- > if (SCARG(uap, gidsetsize)) { > iset = stackgap_alloc(&sg, SCARG(uap, gidsetsize)* > sizeof(ibcs2_gid_t)); > for (i = 0, gp = SCARG(&sa, gidset); i < retval[0]; i++) > iset[i] = (ibcs2_gid_t)*gp++; > if (retval[0] && (error = copyout((caddr_t)iset, > (caddr_t)SCARG(uap, gidset), > sizeof(ibcs2_gid_t)*retval[0]))) > return error; > } Miguel Angel
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?Pine.BSF.3.91.970623222929.18537A-100000>