Hello community, here is the log from the commit of package at for openSUSE:Factory checked in at Sat Aug 29 00:54:31 CEST 2009. -------- --- at/at.changes 2009-08-13 22:52:12.000000000 +0200 +++ at/at.changes 2009-08-27 14:51:57.000000000 +0200 @@ -1,0 +2,6 @@ +Thu Aug 27 12:16:43 CEST 2009 - mseben@novell.com + +- closedir.patch renamed to leak-fix.patch and added others fixs + of resource leaks (bnc#533454) + +------------------------------------------------------------------- calling whatdependson for head-i586 Old: ---- at-3.1.8-closedir.patch New: ---- at-3.1.8-leak-fix.patch ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ Other differences: ------------------ ++++++ at.spec ++++++ --- /var/tmp/diff_new_pack.LdnYjC/_old 2009-08-29 00:53:26.000000000 +0200 +++ /var/tmp/diff_new_pack.LdnYjC/_new 2009-08-29 00:53:26.000000000 +0200 @@ -26,7 +26,7 @@ Group: System/Daemons AutoReqProv: on Version: 3.1.8 -Release: 1074 +Release: 1075 Summary: A Job Manager Source: at_3.1.8-11.tar.gz Source1: atd.init @@ -49,7 +49,8 @@ Patch13: %{name}-%{version}-cleanup_perm.patch # PATCH-FIX-UPSTRAM pam-session-as-root (bnc#408986, bnc#239210) Patch14: %{name}-%{version}-pam-session-as-root.patch -Patch15: %{name}-%{version}-closedir.patch +# PATCH-FIX-UPSTRAM clean-up opened descriptors (bnc#533454, bnc#523346) +Patch15: %{name}-%{version}-leak-fix.patch BuildRoot: %{_tmppath}/%{name}-%{version}-build PreReq: /usr/sbin/useradd /usr/sbin/groupadd %fillup_prereq %insserv_prereq ++++++ at-3.1.8-leak-fix.patch ++++++ --- at.c.orig 2009-08-27 11:22:49.000000000 +0200 +++ at.c 2009-08-27 12:12:58.000000000 +0200 @@ -600,6 +600,9 @@ else printf("%ld\t%s %c\n", jobno, timestr, queue); } + + closedir(spool); + PRIV_END } @@ -676,6 +679,11 @@ while ((ch = getc(fp)) != EOF) { putchar(ch); } + PRIV_START + if (fp!=NULL) { + fclose(fp); + } + PRIV_END } break; @@ -687,7 +695,13 @@ } } } - } + } + + PRIV_START + if (spool!=NULL) { + closedir(spool); + } + PRIV_END } /* delete_jobs */ #define ATOI2(ar) ((ar)[0] - '0') * 10 + ((ar)[1] - '0'); (ar) += 2; ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ Remember to have fun... -- To unsubscribe, e-mail: opensuse-commit+unsubscribe@opensuse.org For additional commands, e-mail: opensuse-commit+help@opensuse.org