Skip site navigation (1)Skip section navigation (2)
Date:      Tue, 9 Jan 2001 06:19:16 +0000
From:      Ben Smithurst <ben@FreeBSD.org>
To:        audit@FreeBSD.org
Subject:   stupid bug in getsid()
Message-ID:  <20010109061916.E79365@strontium.scientia.demon.co.uk>

next in thread | raw e-mail | index | archive | help
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




Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20010109061916.E79365>