ports/149031: Not work sysutils/termlog
Alex Keda
admin at lissyara.su
Wed Jul 28 12:10:02 UTC 2010
>Number: 149031
>Category: ports
>Synopsis: Not work sysutils/termlog
>Confidential: no
>Severity: non-critical
>Priority: low
>Responsible: freebsd-ports-bugs
>State: open
>Quarter:
>Keywords:
>Date-Required:
>Class: sw-bug
>Submitter-Id: current-users
>Arrival-Date: Wed Jul 28 12:10:02 UTC 2010
>Closed-Date:
>Last-Modified:
>Originator: Alex Keda
>Release: 8.1-RC2
>Organization:
USSR
>Environment:
FreeBSD srv5.host-food.ru 8.1-RC2 FreeBSD 8.1-RC2 #0: Thu Jul 15 21:30:39 MSD 2010 lissyara at srv5.host-food.ru:/home/usr_moved/obj/home/usr_moved/src/sys/HOST-FOOD i386
>Description:
after upgrade from 7 то 8 sysutils/termlog does not work.
it use incorrect file name for log - with slash, because in 8 used tty names such as pts/1
>How-To-Repeat:
install and attempt run
>Fix:
see patch - it cut tty name by slash
Patch attached with submission follows:
diff -Nru termlog.orig/Makefile termlog/Makefile
--- termlog.orig/Makefile 2010-03-20 17:43:55.000000000 +0300
+++ termlog/Makefile 2010-07-28 15:43:04.000000000 +0400
@@ -7,7 +7,7 @@
PORTNAME= termlog
PORTVERSION= 2.5
-PORTREVISION= 1
+PORTREVISION= 2
CATEGORIES= security sysutils
MASTER_SITES= http://www.seccuris.com/documents/downloads/
MASTER_SITE_SUBDIR= termlog
diff -Nru termlog.orig/files/patch-fileops.c termlog/files/patch-fileops.c
--- termlog.orig/files/patch-fileops.c 1970-01-01 03:00:00.000000000 +0300
+++ termlog/files/patch-fileops.c 2010-07-28 15:42:07.000000000 +0400
@@ -0,0 +1,10 @@
+--- ./fileops.c.orig 2010-07-28 15:39:07.000000000 +0400
++++ ./fileops.c 2010-07-28 15:39:33.000000000 +0400
+@@ -92,6 +92,8 @@
+ snprintf(logname, sizeof(logname) - 1,
+ "%s_%s_%d.log", snp->s_username,
+ snp->s_line, time(0));
+ if (rindex(logname,'/'))
++ logname[rindex(logname,'/')-logname] = 'D';
+ sm->fp = fopen(logname, "w");
+ if (sm->fp == NULL)
+ return (NULL);
>Release-Note:
>Audit-Trail:
>Unformatted:
More information about the freebsd-ports-bugs
mailing list