svn commit: r514110 - in head/sysutils/screen: . files

Cy Schubert cy at FreeBSD.org
Wed Oct 9 01:03:05 UTC 2019


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;


More information about the svn-ports-head mailing list