Hello community, here is the log from the commit of package mlmmj checked in at Thu Apr 13 15:29:39 CEST 2006. -------- --- mlmmj/mlmmj.changes 2006-01-27 16:23:59.000000000 +0100 +++ STABLE/mlmmj/mlmmj.changes 2006-04-10 22:45:38.000000000 +0200 @@ -1,0 +2,7 @@ +Mon Apr 10 22:43:27 CEST 2006 - mrueckert@suse.de + +- added mlmmj-1.2.11_subscriber_mmap.patch: + * src/subscriberfuncs.c: Do not mmap() 0 byte files. + mmap() returns EINVAL for 0 byte size. + +------------------------------------------------------------------- New: ---- mlmmj-1.2.11_subscriber_mmap.patch ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ Other differences: ------------------ ++++++ mlmmj.spec ++++++ --- /var/tmp/diff_new_pack.QoD9cw/_old 2006-04-13 15:29:04.000000000 +0200 +++ /var/tmp/diff_new_pack.QoD9cw/_new 2006-04-13 15:29:04.000000000 +0200 @@ -5,7 +5,7 @@ # This file and all modifications and additions to the pristine # package are under the same license as the package itself. # -# Please submit bugfixes or comments via http://bugs.opensuse.org +# Please submit bugfixes or comments via http://bugs.opensuse.org/ # # norootforbuild @@ -14,11 +14,12 @@ License: X11/MIT Group: Productivity/Networking/Email/Mailinglists Version: 1.2.11 -Release: 4 +Release: 13 URL: http://mlmmj.mmj.dk/ Summary: Mail Server Independent Reimplementation of the EZMLM Mailing List Source0: %name-%version.tar.bz2 Patch0: rFastTemplate.diff +Patch1: mlmmj-1.2.11_subscriber_mmap.patch BuildRoot: %{_tmppath}/%{name}-%{version}-build %description @@ -36,6 +37,7 @@ %prep %setup -q %patch0 -p1 +%patch1 %build ./configure --prefix=/usr --mandir=%_mandir @@ -62,6 +64,10 @@ /usr/share/%name %changelog -n mlmmj +* Mon Apr 10 2006 - mrueckert@suse.de +- added mlmmj-1.2.11_subscriber_mmap.patch: + * src/subscriberfuncs.c: Do not mmap() 0 byte files. + mmap() returns EINVAL for 0 byte size. * Fri Jan 27 2006 - mmj@suse.de - Add missing %%endif * Fri Jan 27 2006 - mmj@suse.de ++++++ mlmmj-1.2.11_subscriber_mmap.patch ++++++ Index: src/subscriberfuncs.c =================================================================== --- src/subscriberfuncs.c.orig +++ src/subscriberfuncs.c @@ -51,6 +51,9 @@ off_t find_subscriber(int fd, const char return (off_t)-1; } + if(st.st_size == 0) + return (off_t)-1; + if(!S_ISREG(st.st_mode)) { log_error(LOG_ARGS, "Non regular file in subscribers.d/"); return (off_t)-1; ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ Remember to have fun...
participants (1)
-
root@suse.de