Hi, here is a patch that makes ttsession work on FreeBSD 11.1
Regards
Alex
>From c5285a009c9f1f30ad7effd4e6b02fe893bfc836 Mon Sep 17 00:00:00 2001
From: alx <a...@fastestcode.org>
Date: Sat, 29 Jul 2017 15:10:54 +0200
Subject: [PATCH] libtt: pass proper flags to getfsstat, log error message and
exit if it fails
Content-Length: 1005
Status: RO
---
cde/lib/tt/lib/util/tt_file_system.C | 8 ++++++--
1 file changed, 6 insertions(+), 2 deletions(-)
diff --git a/cde/lib/tt/lib/util/tt_file_system.C b/cde/lib/tt/lib/util/tt_file_system.C
index ef6924d7..05c81b71 100644
--- a/cde/lib/tt/lib/util/tt_file_system.C
+++ b/cde/lib/tt/lib/util/tt_file_system.C
@@ -46,6 +46,7 @@
#include <stdio.h>
#include <string.h>
+#include <errno.h>
#if defined(linux)
# include <sys/poll.h>
#else
@@ -516,8 +517,11 @@ updateFileSystemEntries ()
int flags = MNT_NOWAIT;
char *s, *host, path[MNAMELEN] ;
- numfs = getfsstat ( (struct statfs *)0, 0, 0 );
-
+ numfs = getfsstat ( (struct statfs *)0, 0, flags );
+ if(numfs == (-1)){
+ _tt_syslog(0,LOG_ERR,"getfsstat: %s",strerror(errno));
+ exit(EXIT_FAILURE);
+ }
bufsize = numfs * sizeof ( struct statfs );
buf = (struct statfs *) malloc ( bufsize );
memset ((void *)buf,0,bufsize);
--
2.11.0
------------------------------------------------------------------------------
Check out the vibrant tech community on one of the world's most
engaging tech sites, Slashdot.org! http://sdm.link/slashdot
_______________________________________________
cdesktopenv-devel mailing list
cdesktopenv-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/cdesktopenv-devel