summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorSimo Sorce <simo@redhat.com>2012-02-20 10:52:24 -0500
committerSimo Sorce <simo@redhat.com>2012-04-05 11:20:33 -0400
commit99d24402236ab621f8c03fdba49e7a75e38263a5 (patch)
treea82d7a62716a072812ea2cc4d8867ae02fdfa437
parentcfbd12afad3fb232cbc214e1c47c2bf202ec5003 (diff)
downloadgss-proxy-99d24402236ab621f8c03fdba49e7a75e38263a5.tar.gz
gss-proxy-99d24402236ab621f8c03fdba49e7a75e38263a5.tar.xz
gss-proxy-99d24402236ab621f8c03fdba49e7a75e38263a5.zip
Depend on UCRED, we cannot work otherwise.
-rw-r--r--proxy/external/platform.m42
-rw-r--r--proxy/src/gp_socket.c4
2 files changed, 1 insertions, 5 deletions
diff --git a/proxy/external/platform.m4 b/proxy/external/platform.m4
index c67e081..2ac2cc4 100644
--- a/proxy/external/platform.m4
+++ b/proxy/external/platform.m4
@@ -44,5 +44,5 @@ if test x"$ac_cv_member_struct_ucred_pid" = xyes -a \
x"$ac_cv_member_struct_ucred_gid" = xyes ; then
AC_DEFINE([HAVE_UCRED], [1], [Define if struct ucred is available])
else
- AC_MSG_WARN([struct ucred is not available])
+ AC_MSG_ERROR([struct ucred is not available])
fi
diff --git a/proxy/src/gp_socket.c b/proxy/src/gp_socket.c
index 233633b..01c89fe 100644
--- a/proxy/src/gp_socket.c
+++ b/proxy/src/gp_socket.c
@@ -42,9 +42,7 @@
struct gp_creds {
int type;
-#ifdef HAVE_UCRED
struct ucred ucred;
-#endif
};
#define FRAGMENT_BIT (1 << 31)
@@ -176,7 +174,6 @@ done:
static int get_peercred(int fd, struct gp_conn *conn)
{
-#ifdef HAVE_UCRED
socklen_t len;
int ret;
@@ -190,7 +187,6 @@ static int get_peercred(int fd, struct gp_conn *conn)
}
conn->creds.type |= CRED_TYPE_UNIX;
-#endif
return 0;
}