Skip site navigation (1)Skip section navigation (2)
Date:      Mon, 31 Jul 2017 22:03:46 +0000 (UTC)
From:      Chris Rees <crees@FreeBSD.org>
To:        ports-committers@freebsd.org, svn-ports-all@freebsd.org, svn-ports-head@freebsd.org
Subject:   svn commit: r447001 - in head/x11-wm/cde: . files
Message-ID:  <201707312203.v6VM3kil064335@repo.freebsd.org>

next in thread | raw e-mail | index | archive | help
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@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 );



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201707312203.v6VM3kil064335>