summaryrefslogtreecommitdiff
path: root/lib
diff options
context:
space:
mode:
authorJelmer Vernooij <jelmer@samba.org>2012-03-24 17:05:29 +0100
committerJelmer Vernooij <jelmer@samba.org>2012-03-24 17:05:29 +0100
commit456abea8941dfb6dab6e69a760532426a781d9ba (patch)
treee347ad20c4f0c7c4cec1f002e73969482eddc730 /lib
parent10dd5f186fa31b3abfb8c65bfe3c1b31215106e3 (diff)
downloadsamba-456abea8941dfb6dab6e69a760532426a781d9ba.tar.gz
samba-456abea8941dfb6dab6e69a760532426a781d9ba.tar.bz2
samba-456abea8941dfb6dab6e69a760532426a781d9ba.zip
replace: Work around socket wrapper.
It's fine to ignore socket wrapper here, as it doesn't deal with unix domain sockets.
Diffstat (limited to 'lib')
-rw-r--r--lib/replace/replace.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/lib/replace/replace.c b/lib/replace/replace.c
index 255b6ad4ba..03fae90859 100644
--- a/lib/replace/replace.c
+++ b/lib/replace/replace.c
@@ -870,6 +870,7 @@ int rep_getpeereid(int s, uid_t *uid, gid_t *gid)
socklen_t cred_len = sizeof(struct ucred);
int ret;
+#undef getsockopt
ret = getsockopt(s, SOL_SOCKET, SO_PEERCRED, (void *)&cred, &cred_len);
if (ret != 0) {
return -1;