From owner-freebsd-emulation Mon Jun 23 18:31:44 1997 Return-Path: Received: (from root@localhost) by hub.freebsd.org (8.8.5/8.8.5) id SAA12722 for emulation-outgoing; Mon, 23 Jun 1997 18:31:44 -0700 (PDT) Received: from cactus.fi.uba.ar (cactus.fi.uba.ar [157.92.49.108]) by hub.freebsd.org (8.8.5/8.8.5) with ESMTP id SAA12715 for ; Mon, 23 Jun 1997 18:31:33 -0700 (PDT) Received: (from msagre@localhost) by cactus.fi.uba.ar (8.8.5/8.8.5) id WAA18552; Mon, 23 Jun 1997 22:33:33 GMT Date: Mon, 23 Jun 1997 22:33:33 +0000 () From: Miguel Angel Sagreras To: emulation@freebsd.org Subject: ORACLE problem with ibcs2_getgroups Message-ID: MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII Sender: owner-emulation@freebsd.org X-Loop: FreeBSD.org Precedence: bulk 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