proc->thread stage 4: rework the VFS and DEVICE subsystems to take thread
[dragonfly.git] / sys / emulation / ibcs2 / i386 / ibcs2_socksys.c
index 9048c90..2e599dc 100644 (file)
@@ -161,7 +161,7 @@ ibcs2_setipdomainname(struct setipdomainname_args *uap)
        char hname[MAXHOSTNAMELEN], *ptr;
        int error, sctl[2], hlen;
 
-       if ((error = suser()))
+       if ((error = suser(curthread)))
                return (error);
 
        /* W/out a hostname a domain-name is nonsense */