Skip site navigation (1)Skip section navigation (2)
Date:      Wed, 9 Oct 2019 01:03:04 +0000 (UTC)
From:      Cy Schubert <cy@FreeBSD.org>
To:        ports-committers@freebsd.org, svn-ports-all@freebsd.org, svn-ports-head@freebsd.org
Subject:   svn commit: r514110 - in head/sysutils/screen: . files
Message-ID:  <201910090103.x991341V012144@repo.freebsd.org>

next in thread | raw e-mail | index | archive | help
Author: cy
Date: Wed Oct  9 01:03:04 2019
New Revision: 514110
URL: https://svnweb.freebsd.org/changeset/ports/514110

Log:
  Resolve a segfault in utmp.c:519 at some installations.

Modified:
  head/sysutils/screen/Makefile
  head/sysutils/screen/files/patch-utmp.c

Modified: head/sysutils/screen/Makefile
==============================================================================
--- head/sysutils/screen/Makefile	Wed Oct  9 01:01:35 2019	(r514109)
+++ head/sysutils/screen/Makefile	Wed Oct  9 01:03:04 2019	(r514110)
@@ -3,6 +3,7 @@
 
 PORTNAME=	screen
 PORTVERSION=	4.7.0
+PORTREVISION=	1
 CATEGORIES=	sysutils
 MASTER_SITES=	GNU \
 		ftp://ftp.gnu.org/gnu/screen/ \

Modified: head/sysutils/screen/files/patch-utmp.c
==============================================================================
--- head/sysutils/screen/files/patch-utmp.c	Wed Oct  9 01:01:35 2019	(r514109)
+++ head/sysutils/screen/files/patch-utmp.c	Wed Oct  9 01:03:04 2019	(r514110)
@@ -1,6 +1,6 @@
 --- utmp.c.orig	2019-10-01 15:08:00.000000000 -0700
-+++ utmp.c	2019-10-08 12:08:46.535155000 -0700
-@@ -26,6 +26,7 @@
++++ utmp.c	2019-10-08 17:56:32.853627000 -0700
+@@ -26,9 +26,13 @@
   ****************************************************************
   */
  
@@ -8,16 +8,12 @@
  #include <sys/types.h>
  #include <sys/stat.h>
  #include <fcntl.h>
-@@ -88,6 +89,9 @@
- static void makedead __P((struct utmp *));
- static int  pututslot __P((slot_t, struct utmp *, char *, struct win *));
- static struct utmp *getutslot __P((slot_t));
 +#ifdef __FreeBSD_version
 +#define GETUTENT
 +#endif
- #ifndef GETUTENT
- static struct utmp *getutent __P((void));
- static void endutent __P((void));
+ 
+ #include "config.h"
+ #include "screen.h"
 @@ -102,7 +106,7 @@
  
  static int utmpok;



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