Replace all uses of setXX[ug]id() and setgroups with samba_setXX[ug]id() calls.
[kai/samba.git] / testsuite / smbd / sec_ctx1.c
index a6e61d1a32b66dc16eff989effe93a31e5cba55e..ab85ae16e5be4406a3bc92aec69b6d22d989ecd6 100644 (file)
@@ -26,8 +26,8 @@ int main (int argc, char **argv)
 {
        /* Become a non-root user */
 
-       setuid(1);
-       setgid(1);
+       samba_setuid(1);
+       samba_setgid(1);
 
        /* Try to push a security context.  This should fail with a
           smb_assert() error. */