svn commit: r447001 - in head/x11-wm/cde: . files

Chris Rees crees at FreeBSD.org
Mon Jul 31 22:03:47 UTC 2017


Author: crees
Date: Mon Jul 31 22:03:45 2017
New Revision: 447001
URL: https://svnweb.freebsd.org/changeset/ports/447001

Log:
  Simple fix for Tooltalk coredump
  
  PR:		ports/221102
  Submitted by:	mikael.urankar at gmail.com

Added:
  head/x11-wm/cde/files/patch-lib_tt_lib_util_tt__file__system.C   (contents, props changed)
Modified:
  head/x11-wm/cde/Makefile

Modified: head/x11-wm/cde/Makefile
==============================================================================
--- head/x11-wm/cde/Makefile	Mon Jul 31 21:48:45 2017	(r447000)
+++ head/x11-wm/cde/Makefile	Mon Jul 31 22:03:45 2017	(r447001)
@@ -2,6 +2,7 @@
 
 PORTNAME=	cde
 DISTVERSION=	2.2.3
+PORTREVISION=	1
 CATEGORIES=	x11-wm
 MASTER_SITES=	SF/cdesktopenv/src/
 DISTNAME=	${PORTNAME}-src-${DISTVERSION}

Added: head/x11-wm/cde/files/patch-lib_tt_lib_util_tt__file__system.C
==============================================================================
--- /dev/null	00:00:00 1970	(empty, because file is newly added)
+++ head/x11-wm/cde/files/patch-lib_tt_lib_util_tt__file__system.C	Mon Jul 31 22:03:45 2017	(r447001)
@@ -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 );


More information about the svn-ports-all mailing list