Don't have to be root if you're the same user (#9538).

This commit is contained in:
Micah Cowan
2008-08-09 12:19:03 -07:00
parent e16843a896
commit 4bd95712f0

View File

@@ -860,8 +860,6 @@ char **av;
own_uid = multi_uid = real_uid;
if (SockMatch && (sockp = index(SockMatch, '/')))
{
if (eff_uid)
Panic(0, "Must run suid root for multiuser support.");
*sockp = 0;
multi = SockMatch;
SockMatch = sockp + 1;
@@ -882,6 +880,9 @@ char **av;
detached = 0;
multiattach = 1;
}
/* Special case: effective user is multiuser. */
if (eff_uid && (multi_uid != eff_uid))
Panic(0, "Must run suid root for multiuser support.");
}
if (SockMatch && *SockMatch == 0)
SockMatch = 0;