aboutsummaryrefslogtreecommitdiffstats
path: root/x11-wm
diff options
context:
space:
mode:
authorcrees <crees@FreeBSD.org>2017-08-01 06:03:45 +0800
committercrees <crees@FreeBSD.org>2017-08-01 06:03:45 +0800
commita987a15a21934ec127bcb49ff834d0e32e4114ea (patch)
tree79d687cbb8d438fe874e6eb4df7172cff107fb6c /x11-wm
parenta7987bbbea464a2838bb5e5f5743c63fdca18083 (diff)
downloadfreebsd-ports-gnome-a987a15a21934ec127bcb49ff834d0e32e4114ea.tar.gz
freebsd-ports-gnome-a987a15a21934ec127bcb49ff834d0e32e4114ea.tar.zst
freebsd-ports-gnome-a987a15a21934ec127bcb49ff834d0e32e4114ea.zip
Simple fix for Tooltalk coredump
PR: ports/221102 Submitted by: mikael.urankar@gmail.com
Diffstat (limited to 'x11-wm')
-rw-r--r--x11-wm/cde/Makefile1
-rw-r--r--x11-wm/cde/files/patch-lib_tt_lib_util_tt__file__system.C23
2 files changed, 24 insertions, 0 deletions
diff --git a/x11-wm/cde/Makefile b/x11-wm/cde/Makefile
index d1a81534f904..94a7527fbfe2 100644
--- a/x11-wm/cde/Makefile
+++ b/x11-wm/cde/Makefile
@@ -2,6 +2,7 @@
PORTNAME= cde
DISTVERSION= 2.2.3
+PORTREVISION= 1
CATEGORIES= x11-wm
MASTER_SITES= SF/cdesktopenv/src/
DISTNAME= ${PORTNAME}-src-${DISTVERSION}
diff --git a/x11-wm/cde/files/patch-lib_tt_lib_util_tt__file__system.C b/x11-wm/cde/files/patch-lib_tt_lib_util_tt__file__system.C
new file mode 100644
index 000000000000..f68dc27e0d10
--- /dev/null
+++ b/x11-wm/cde/files/patch-lib_tt_lib_util_tt__file__system.C
@@ -0,0 +1,23 @@
+--- lib/tt/lib/util/tt_file_system.C 2016-06-19 20:46:29 UTC
++++ 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,7 +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 );