[PATCH] samba-3.0-alpha19 for Stratus VOS
Paul_GreenVOS at vos.stratus.com
Paul_GreenVOS at vos.stratus.com
Wed Sep 4 13:02:00 GMT 2002
This patch corresponds to the patch I sent to samba-technical
yesterday for samba-2.2.6pre2. It deals with the fact that the
VOS POSIX environment does not implement Unix-style sockets. We
can't build winbindd, but at least we can build the other
components.
There is no patch here regarding setgroups because I want to
think about this issue some more in this branch. Maybe I should
just go off and implement this call.
Modified files:
source/lib/util_sock.c
source/nsswitch/wb_common.c
### START OF PATCH ###
diff -urp --new-file oldsamba/source/lib/util_sock.c newsamba/source/lib/util_sock.c
--- oldsamba/source/lib/util_sock.c Wed Sep 4 07:39:04 2002
+++ newsamba/source/lib/util_sock.c Wed Sep 4 07:39:12 2002
@@ -976,6 +976,7 @@ int create_pipe_sock(const char *socket_
const char *socket_name,
mode_t dir_perms)
{
+#ifdef HAVE_UNIXSOCKET
struct sockaddr_un sunaddr;
struct stat st;
int sock;
@@ -1064,6 +1065,10 @@ int create_pipe_sock(const char *socket_
/* Success! */
return sock;
+#else
+ DEBUG(0, ("create_pipe_sock: No Unix sockets on this system\n"));
+ return -1;
+#endif /* HAVE_UNIXSOCKET */
}
/*******************************************************************
diff -urp --new-file oldsamba/source/nsswitch/wb_common.c newsamba/source/nsswitch/wb_common.c
--- oldsamba/source/nsswitch/wb_common.c Wed Sep 4 07:39:42 2002
+++ newsamba/source/nsswitch/wb_common.c Wed Sep 4 07:39:35 2002
@@ -87,6 +87,7 @@ static void close_sock(void)
int winbind_open_pipe_sock(void)
{
+#ifdef HAVE_UNIXSOCKET
struct sockaddr_un sunaddr;
static pid_t our_pid;
struct stat st;
@@ -155,6 +156,9 @@ int winbind_open_pipe_sock(void)
}
return winbindd_fd;
+#else
+ return -1;
+#endif /* HAVE_UNIXSOCKET */
}
/* Write data to winbindd socket */
### END OF PATCH ###
Thanks
PG
--
Paul Green | Mail: Paul.Green at stratus.com
Senior Technical Consultant | Voice: +1 978-461-7557 FAX: +1 978-461-3610
Stratus Technologies | Video: PictureTel/AT&T by request.
Maynard, MA 01754 | Disclaimer: I speak for myself, not Stratus.
More information about the samba-technical
mailing list