diff options
author | Jelmer Vernooij <jelmer@samba.org> | 2012-03-24 17:05:29 +0100 |
---|---|---|
committer | Jelmer Vernooij <jelmer@samba.org> | 2012-03-24 17:05:29 +0100 |
commit | 456abea8941dfb6dab6e69a760532426a781d9ba (patch) | |
tree | e347ad20c4f0c7c4cec1f002e73969482eddc730 | |
parent | 10dd5f186fa31b3abfb8c65bfe3c1b31215106e3 (diff) | |
download | samba-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.
-rw-r--r-- | lib/replace/replace.c | 1 |
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; |