rpms/apachetop/devel apachetop-0.12.5-CAN-2005-2660.patch, NONE, 1.1 apachetop.spec, 1.8, 1.9
Aurelien Bompard (abompard)
fedora-extras-commits at redhat.com
Tue Oct 4 22:00:53 UTC 2005
Author: abompard
Update of /cvs/extras/rpms/apachetop/devel
In directory cvs-int.fedora.redhat.com:/tmp/cvs-serv1967/devel
Modified Files:
apachetop.spec
Added Files:
apachetop-0.12.5-CAN-2005-2660.patch
Log Message:
- add patch for CAN-2005-2660
apachetop-0.12.5-CAN-2005-2660.patch:
--- NEW FILE apachetop-0.12.5-CAN-2005-2660.patch ---
--- ./src/apachetop.cc.CAN-2005-2660 2005-10-04 23:56:09.000000000 +0200
+++ ./src/apachetop.cc 2005-10-04 23:56:13.000000000 +0200
@@ -1105,7 +1105,16 @@
FILE *d;
va_list args;
- if (cf.debug && (d = fopen(DEBUG_OUTPUT, "a")))
+ static char fileName[1024] = {'\0'};
+
+ if ( !strlen( fileName ) )
+ {
+ strcpy( fileName, "/tmp/atop.XXXXXX" );
+ mkdtemp( fileName );
+ strncat( fileName, "/debug", sizeof(fileName ) );
+ }
+
+ if (cf.debug && (d = fopen(fileName, "a")))
{
va_start(args, fmt);
vfprintf(d, fmt, args);
Index: apachetop.spec
===================================================================
RCS file: /cvs/extras/rpms/apachetop/devel/apachetop.spec,v
retrieving revision 1.8
retrieving revision 1.9
diff -u -r1.8 -r1.9
--- apachetop.spec 8 May 2005 15:10:43 -0000 1.8
+++ apachetop.spec 4 Oct 2005 22:00:51 -0000 1.9
@@ -1,12 +1,13 @@
Name: apachetop
Version: 0.12.5
-Release: 1%{?dist}
+Release: 2%{?dist}
Summary: A top-like display of Apache logs
Group: Applications/Internet
License: BSD
URL: http://clueful.shagged.org/apachetop
Source0: http://clueful.shagged.org/apachetop/files/apachetop-0.12.5.tar.gz
+Patch0: apachetop-0.12.5-CAN-2005-2660.patch
BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n)
BuildRequires: ncurses-devel, m4, readline-devel
@@ -20,6 +21,7 @@
%prep
%setup -q
+%patch0 -p1 -b .CAN-2005-2660
%build
@@ -44,6 +46,9 @@
%changelog
+* Tue Oct 04 2005 Aurelien Bompard <gauret[AT]free.fr> 0.12.5-2
+- add patch for CAN-2005-2660
+
* Sun May 08 2005 Aurelien Bompard <gauret[AT]free.fr> 0.12.5-1%{?dist}
- version 0.12.5
- drop patch (applied upsteam)
More information about the fedora-extras-commits
mailing list