From 19f8dda01bb2a0b0b43496dcfd48fee62093bb71 Mon Sep 17 00:00:00 2001 From: Roberto Augusto Pungartnik Date: Fri, 22 Sep 2000 22:19:58 +0000 Subject: [PATCH] Added S_ISFIFO check for Solaris. --- scheduler/client.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/scheduler/client.c b/scheduler/client.c index e6720c24b5a..9c871b6b557 100644 --- a/scheduler/client.c +++ b/scheduler/client.c @@ -461,8 +461,8 @@ static int server_connect( const char *oldcwd, const char *serverdir ) if (lstat( SOCKETNAME, &st ) == -1) fatal_perror( "lstat %s/%s", serverdir, SOCKETNAME ); } - /* make sure the socket is sane */ - if (!S_ISSOCK(st.st_mode)) + /* make sure the socket is sane (ISFIFO needed for Solaris) */ + if (!S_ISSOCK(st.st_mode) && !S_ISFIFO(st.st_mode)) fatal_error( "'%s/%s' is not a socket\n", serverdir, SOCKETNAME ); if (st.st_uid != getuid()) fatal_error( "'%s/%s' is not owned by you\n", serverdir, SOCKETNAME );