Fix use of /etc/ksh_audit on i386. Problem reported by Stefan Klein.
This commit is contained in:
parent
74f6a08cba
commit
315b407384
@ -1,4 +1,4 @@
|
||||
# $OpenBSD: Makefile,v 1.5 2013/10/01 09:07:17 ajacoutot Exp $
|
||||
# $OpenBSD: Makefile,v 1.6 2014/07/11 20:55:40 pascal Exp $
|
||||
|
||||
BROKEN-mips64 = libast is not built
|
||||
|
||||
@ -7,6 +7,7 @@ COMMENT = AT&T Korn Shell
|
||||
V = 2012-08-01
|
||||
DISTNAME = ast-ksh.${V}
|
||||
PKGNAME = ksh93-${V:S/-//g}
|
||||
REVISION = 0
|
||||
|
||||
CATEGORIES = shells
|
||||
|
||||
|
12
shells/ksh93/patches/patch-src_cmd_ksh93_edit_history_c
Normal file
12
shells/ksh93/patches/patch-src_cmd_ksh93_edit_history_c
Normal file
@ -0,0 +1,12 @@
|
||||
$OpenBSD: patch-src_cmd_ksh93_edit_history_c,v 1.1 2014/07/11 20:55:40 pascal Exp $
|
||||
--- src/cmd/ksh93/edit/history.c.orig Fri Jul 11 10:03:31 2014
|
||||
+++ src/cmd/ksh93/edit/history.c Fri Jul 11 10:04:59 2014
|
||||
@@ -834,7 +834,7 @@ static int hist_write(Sfio_t *iop,const void *buff,reg
|
||||
if(hp->auditfp)
|
||||
{
|
||||
time_t t=time((time_t*)0);
|
||||
- sfprintf(hp->auditfp,"%u;%u;%s;%*s%c",sh_isoption(SH_PRIVILEGED)?shgd->euserid:shgd->userid,t,hp->tty,size,buff,0);
|
||||
+ sfprintf(hp->auditfp,"%u;%llu;%s;%*s%c",sh_isoption(SH_PRIVILEGED)?shgd->euserid:shgd->userid,t,hp->tty,size,buff,0);
|
||||
sfsync(hp->auditfp);
|
||||
}
|
||||
#endif /* SHOPT_AUDIT */
|
Loading…
Reference in New Issue
Block a user