ports/149031: Not work sysutils/termlog
Ildar Hizbulin
hizel at vyborg.ru
Wed Jul 28 12:50:03 UTC 2010
The following reply was made to PR ports/149031; it has been noted by GNATS.
From: Ildar Hizbulin <hizel at vyborg.ru>
To: bug-followup at FreeBSD.org
Cc: admin at lissyara.su
Subject: Re: ports/149031: Not work sysutils/termlog
Date: Wed, 28 Jul 2010 16:31:19 +0400
more beautiful patch :} :
#diff -ruN fileops.c~ fileops.c
--- fileops.c~ 2005-01-13 07:49:32.000000000 +0300
+++ fileops.c 2010-07-28 16:28:22.000000000 +0400
@@ -92,6 +92,7 @@
snprintf(logname, sizeof(logname) - 1,
"%s_%s_%d.log", snp->s_username,
snp->s_line, time(0));
+ while(index(logname,'/')) *(index(logname,'/')) = '_';
sm->fp = fopen(logname, "w");
if (sm->fp == NULL)
return (NULL);
---
e-mail: hizel at vyborg.ru
jid: hizel at vyborg.ru, hizel at jabber.ru
More information about the freebsd-ports-bugs
mailing list