aboutsummaryrefslogtreecommitdiff
path: root/shells/ksh93
diff options
context:
space:
mode:
authorCy Schubert <cy@FreeBSD.org>2019-08-07 18:31:13 +0000
committerCy Schubert <cy@FreeBSD.org>2019-08-07 18:31:13 +0000
commit4a4cf35493b12da0b7541413d34e6dc7059bddc7 (patch)
treeb1ae570f151e8bcff743ac29bf104d6a4274fe1f /shells/ksh93
parent944100afbd00f00dda48ee7e3ebd7cfaad5df0d6 (diff)
downloadports-4a4cf35493b12da0b7541413d34e6dc7059bddc7.tar.gz
ports-4a4cf35493b12da0b7541413d34e6dc7059bddc7.zip
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
Notes
Notes: svn path=/head/; revision=508344
Diffstat (limited to 'shells/ksh93')
-rw-r--r--shells/ksh93/Makefile2
-rw-r--r--shells/ksh93/files/patch-src_cmd_ksh93_sh_xec.c11
2 files changed, 12 insertions, 1 deletions
diff --git a/shells/ksh93/Makefile b/shells/ksh93/Makefile
index 89a60d099913..69034ecc9b39 100644
--- a/shells/ksh93/Makefile
+++ b/shells/ksh93/Makefile
@@ -3,7 +3,7 @@
PORTNAME= ksh93
DISTVERSION=2020.0.0-alpha1
PORTEPOCH= 1
-PORTREVISION= 2
+PORTREVISION= 3
CATEGORIES= shells
MAINTAINER= cy@freebsd.org
diff --git a/shells/ksh93/files/patch-src_cmd_ksh93_sh_xec.c b/shells/ksh93/files/patch-src_cmd_ksh93_sh_xec.c
new file mode 100644
index 000000000000..62237cf768b6
--- /dev/null
+++ b/shells/ksh93/files/patch-src_cmd_ksh93_sh_xec.c
@@ -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 *