From: Thibault Godouet Date: Thu, 16 Jan 2014 22:09:38 +0000 (+0000) Subject: fixed fcrondyn socket credential auth on Solaris 10 X-Git-Tag: ver3_1_3~16 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=b7475656662e8904d4b1dae2c6405cafce357baf;p=thirdparty%2Ffcron.git fixed fcrondyn socket credential auth on Solaris 10 --- diff --git a/fcrondyn.c b/fcrondyn.c index 5ca8bbb..03bfe31 100644 --- a/fcrondyn.c +++ b/fcrondyn.c @@ -458,14 +458,14 @@ connect_fcron(void) die_e("Cannot connect() to fcron (check if fcron is running)"); /* Nothing to do on the client side if we use SO_PASSCRED */ -#ifndef SO_PASSCRED +#if !defined(SO_PASSCRED) && !defined(HAVE_GETPEERUCRED) && !defined(HAVE_GETPEEREID) if (authenticate_user_password(fd) == ERR) { fprintf(stderr, "Invalid password or too many authentication failures" " (try to connect later).\n(In the later case, fcron rejects all" " new authentication during %d secs)\n", AUTH_WAIT); die("Unable to authenticate user"); } -#endif /* SO_PASSCRED */ +#endif /* SO_PASSCRED HAVE_GETPEERUCRED HAVE_GETPEEREID */ return fd;