- Apply 2 upstream bug fixes

This commit is contained in:
Steve Grubb 2010-05-18 16:52:00 +00:00
parent 4255ca5492
commit 5554c264b2
2 changed files with 30 additions and 1 deletions

View File

@ -0,0 +1,24 @@
diff -urp aide-0.14.orig/src/be.c aide-0.14/src/be.c
--- aide-0.14.orig/src/be.c 2010-05-18 12:36:19.000000000 -0400
+++ aide-0.14/src/be.c 2010-05-18 12:39:53.000000000 -0400
@@ -161,7 +161,7 @@ FILE* be_init(int inout,url_t* u,int isz
#endif
#ifdef WITH_ZLIB
if(iszipped && !inout){
- fh=gzdopen(fd,"wb9+");
+ fh=gzdopen(fd,"wb9");
if(fh==NULL){
error(0,_("Couldn't open file %s for %s"),u->value,
inout?"reading\n":"writing\n");
diff -urp aide-0.14.orig/src/commandconf.c aide-0.14/src/commandconf.c
--- aide-0.14.orig/src/commandconf.c 2010-05-18 12:36:19.000000000 -0400
+++ aide-0.14/src/commandconf.c 2010-05-18 12:36:49.000000000 -0400
@@ -84,7 +84,7 @@ int commandconf(const char mode,const ch
else {
tmp=(char*)malloc(sizeof(char)
*(strlen(after)+strlen(line)+2));
- strcat(tmp,after);
+ strcpy(tmp,after);
strcat(tmp,"\n");
strcat(tmp,line);
free(after);

View File

@ -4,7 +4,7 @@
Summary: Intrusion detection environment
Name: aide
Version: 0.14
Release: 4%{?dist}
Release: 5%{?dist}
URL: http://sourceforge.net/projects/aide
License: GPLv2+
Group: Applications/System
@ -18,6 +18,7 @@ Patch2: aide-0.13.1-libgrypt-init.patch
Patch3: aide-0.14-abort.patch
Patch4: aide-0.14-selinux.patch
Patch5: aide-0.14-perms.patch
Patch6: aide-0.14-other-fixes.patch
Buildroot: %{_tmppath}/%{name}-%{version}-%{release}-buildroot-%(%{__id_u} -n)
BuildRequires: mktemp
BuildRequires: prelink elfutils-libelf-devel
@ -44,6 +45,7 @@ checker and intrusion detection program.
%patch3 -p1
%patch4 -p1
%patch5 -p1
%patch6 -p1
%build
%configure --with-config_file=%{_sysconfdir}/aide.conf \
@ -89,6 +91,9 @@ rm -rf $RPM_BUILD_ROOT
%changelog
* Tue May 18 2010 Steve Grubb <sgrubb@redhat.com> - 0.14-5
- Apply 2 upstream bug fixes
* Tue May 18 2010 Steve Grubb <sgrubb@redhat.com> - 0.14-4
- Use upstream's patch to fix bz 590566