From owner-freebsd-audit Mon Jan 8 22:20:12 2001 Delivered-To: freebsd-audit@freebsd.org Received: from scientia.demon.co.uk (scientia.demon.co.uk [212.228.14.13]) by hub.freebsd.org (Postfix) with ESMTP id 4604E37B400 for ; Mon, 8 Jan 2001 22:19:54 -0800 (PST) Received: from strontium.scientia.demon.co.uk ([192.168.91.36] ident=root) by scientia.demon.co.uk with esmtp (Exim 3.20 #1) id 14Fs7p-000LH2-00 for audit@FreeBSD.org; Tue, 09 Jan 2001 06:19:17 +0000 Received: (from ben@localhost) by strontium.scientia.demon.co.uk (8.11.1/8.11.1) id f096JHf66113 for audit@FreeBSD.org; Tue, 9 Jan 2001 06:19:17 GMT (envelope-from ben) Date: Tue, 9 Jan 2001 06:19:16 +0000 From: Ben Smithurst To: audit@FreeBSD.org Subject: stupid bug in getsid() Message-ID: <20010109061916.E79365@strontium.scientia.demon.co.uk> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline User-Agent: Mutt/1.2.5i Sender: owner-freebsd-audit@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.ORG Anyone object terribly if I fix this really stupid bug? --- kern_prot.c~ Tue Jan 9 05:59:10 2001 +++ kern_prot.c Tue Jan 9 05:59:22 2001 @@ -162,7 +162,7 @@ if (uap->pid == 0) goto found; - if ((pt == pfind(uap->pid)) == 0) + if ((pt = pfind(uap->pid)) == 0) return ESRCH; found: p->p_retval[0] = pt->p_session->s_sid; -- Ben Smithurst / ben@FreeBSD.org / PGP: 0x99392F7D To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-audit" in the body of the message