From 821bd95156e8cc6d843aecb0a27d4a08761b7dac Mon Sep 17 00:00:00 2001 From: Jeremy Allison Date: Thu, 28 Jun 2012 11:59:51 -0700 Subject: Replace all uses of setXX[ug]id() and setgroups with samba_setXX[ug]id() calls. Will allow thread-specific credentials to be added by modifying the central definitions. Deliberately left the setXX[ug]id() call in popt as this is not used in Samba. --- testsuite/smbd/sec_ctx1.c | 4 ++-- testsuite/smbd/sec_ctx_nonroot.c | 4 ++-- 2 files changed, 4 insertions(+), 4 deletions(-) (limited to 'testsuite') diff --git a/testsuite/smbd/sec_ctx1.c b/testsuite/smbd/sec_ctx1.c index a6e61d1a32..ab85ae16e5 100644 --- a/testsuite/smbd/sec_ctx1.c +++ b/testsuite/smbd/sec_ctx1.c @@ -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. */ diff --git a/testsuite/smbd/sec_ctx_nonroot.c b/testsuite/smbd/sec_ctx_nonroot.c index b31aeb0906..6d4dbf3443 100644 --- a/testsuite/smbd/sec_ctx_nonroot.c +++ b/testsuite/smbd/sec_ctx_nonroot.c @@ -27,8 +27,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. */ -- cgit