Skip site navigation (1)Skip section navigation (2)
Date:      Wed, 7 Aug 2019 18:31:14 +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: r508344 - in head/shells/ksh93: . files
Message-ID:  <201908071831.x77IVEEF048540@repo.freebsd.org>

next in thread | raw e-mail | index | archive | help
Author: cy
Date: Wed Aug  7 18:31:13 2019
New Revision: 508344
URL: https://svnweb.freebsd.org/changeset/ports/508344

Log:
  Fix:
  
  $ ksh93
  $ time
  ../src/cmd/ksh93/sh/xec.c:2171: failed assertion 'tb.tv_sec'
  Abort trap (core dumped)
  $ ksh93
  $ times
  ../src/cmd/ksh93/sh/xec.c:2171: failed assertion 'tb.tv_sec'
  Abort trap (core dumped)
  
  PR:		239701
  Suggested by:	w.schwarzenfeld@utanet.at
  MFH:		2019Q3

Added:
  head/shells/ksh93/files/patch-src_cmd_ksh93_sh_xec.c   (contents, props changed)
Modified:
  head/shells/ksh93/Makefile   (contents, props changed)

Modified: head/shells/ksh93/Makefile
==============================================================================
--- head/shells/ksh93/Makefile	Wed Aug  7 18:08:42 2019	(r508343)
+++ head/shells/ksh93/Makefile	Wed Aug  7 18:31:13 2019	(r508344)
@@ -3,7 +3,7 @@
 PORTNAME=	ksh93
 DISTVERSION=2020.0.0-alpha1
 PORTEPOCH=	1
-PORTREVISION=	2
+PORTREVISION=	3
 CATEGORIES=	shells
 
 MAINTAINER=	cy@freebsd.org

Added: head/shells/ksh93/files/patch-src_cmd_ksh93_sh_xec.c
==============================================================================
--- /dev/null	00:00:00 1970	(empty, because file is newly added)
+++ head/shells/ksh93/files/patch-src_cmd_ksh93_sh_xec.c	Wed Aug  7 18:31:13 2019	(r508344)
@@ -0,0 +1,11 @@
+--- src/cmd/ksh93/sh/xec.c.orig	2019-04-16 20:04:19 UTC
++++ src/cmd/ksh93/sh/xec.c
+@@ -2167,7 +2167,7 @@ int sh_exec(Shell_t *shp, const Shnode_t *t, int flags
+             }
+ #ifdef timeofday
+             times(&after);
+-            timeofday(&ta);
++            timeofday(&tb);
+             assert(tb.tv_sec);
+             at = shp->gd->lim.clk_tck * (ta.tv_sec - tb.tv_sec);
+             at += ((shp->gd->lim.clk_tck *



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