Fix getsid() to use "=" instead of "==".

Not objected to by:	audit
This commit is contained in:
Ben Smithurst 2001-01-13 22:49:59 +00:00
parent 1d073b1d43
commit 4c061a9da1

View File

@ -173,7 +173,7 @@ getsid(p, uap)
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;