summaryrefslogtreecommitdiff
path: root/testsuite
diff options
context:
space:
mode:
authorJeremy Allison <jra@samba.org>2012-06-28 11:59:51 -0700
committerJeremy Allison <jra@samba.org>2012-06-28 17:15:16 -0700
commit821bd95156e8cc6d843aecb0a27d4a08761b7dac (patch)
treea35f1f0059005555bc3fe548760a9cf01e896d55 /testsuite
parent7630fe50bd7d0783d1f6b253cbee46cccca3f774 (diff)
downloadsamba-821bd95156e8cc6d843aecb0a27d4a08761b7dac.tar.gz
samba-821bd95156e8cc6d843aecb0a27d4a08761b7dac.tar.bz2
samba-821bd95156e8cc6d843aecb0a27d4a08761b7dac.zip
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.
Diffstat (limited to 'testsuite')
-rw-r--r--testsuite/smbd/sec_ctx1.c4
-rw-r--r--testsuite/smbd/sec_ctx_nonroot.c4
2 files changed, 4 insertions, 4 deletions
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. */