Dolda2000 GitWeb
/
doldaconnect.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Incremental commit of documentation.
[doldaconnect.git]
/
lib
/
uilib.c
diff --git
a/lib/uilib.c
b/lib/uilib.c
index
303ed0c
..
973a2b3
100644
(file)
--- a/
lib/uilib.c
+++ b/
lib/uilib.c
@@
-762,6
+762,7
@@
int dc_handleread(void)
return(0);
}
return(0);
}
+#if UNIX_AUTH_STYLE == 1
static void mkcreds(struct msghdr *msg)
{
struct ucred *ucred;
static void mkcreds(struct msghdr *msg)
{
struct ucred *ucred;
@@
-780,6
+781,7
@@
static void mkcreds(struct msghdr *msg)
ucred->gid = getgid();
msg->msg_controllen = cmsg->cmsg_len;
}
ucred->gid = getgid();
msg->msg_controllen = cmsg->cmsg_len;
}
+#endif
int dc_handlewrite(void)
{
int dc_handlewrite(void)
{
@@
-798,11
+800,13
@@
int dc_handlewrite(void)
msg.msg_iovlen = 1;
bufvec.iov_base = queue->buf;
bufvec.iov_len = queue->buflen;
msg.msg_iovlen = 1;
bufvec.iov_base = queue->buf;
bufvec.iov_len = queue->buflen;
+#if UNIX_AUTH_STYLE == 1
if((servinfo.family == PF_UNIX) && !servinfo.sentcreds)
{
mkcreds(&msg);
servinfo.sentcreds = 1;
}
if((servinfo.family == PF_UNIX) && !servinfo.sentcreds)
{
mkcreds(&msg);
servinfo.sentcreds = 1;
}
+#endif
ret = sendmsg(fd, &msg, MSG_NOSIGNAL | MSG_DONTWAIT);
if(ret < 0)
{
ret = sendmsg(fd, &msg, MSG_NOSIGNAL | MSG_DONTWAIT);
if(ret < 0)
{