Author: baggins Date: Thu Jul 28 21:27:30 2011 GMT Module: packages Tag: HEAD ---- Log message: - rel 13 - glibc hax0rs fucked up freopen so if all fds are closed it fails with EBADF at dup3(0,0,0)/dup2(0,0), so just leave fd0 open for it to work
---- Files affected: packages/idled: idled.spec (1.31 -> 1.32) , idled-freopen.patch (NONE -> 1.1) (NEW) ---- Diffs: ================================================================ Index: packages/idled/idled.spec diff -u packages/idled/idled.spec:1.31 packages/idled/idled.spec:1.32 --- packages/idled/idled.spec:1.31 Sat Jun 11 23:09:20 2011 +++ packages/idled/idled.spec Thu Jul 28 23:27:25 2011 @@ -3,7 +3,7 @@ Summary(pl.UTF-8): Demon który kończy nieaktywne sesje użytkowników Name: idled Version: 1.16 -Release: 12 +Release: 13 License: non-profit Group: Daemons Source0: http://www.darkwing.com/idled/download/%{name}-%{version}.tar.gz @@ -16,6 +16,7 @@ Patch4: %{name}-yacc.patch Patch5: %{name}-O_NONBLOCK.patch Patch6: %{name}-malloc.patch +Patch7: %{name}-freopen.patch BuildRequires: bison BuildRequires: flex BuildRequires: rpmbuild(macros) >= 1.268 @@ -44,6 +45,7 @@ %patch4 -p1 %patch5 -p1 %patch6 -p1 +%patch7 -p1 %build %{__make} clean @@ -105,6 +107,11 @@ All persons listed below can be reached at <cvs_login>@pld-linux.org $Log$ +Revision 1.32 2011/07/28 21:27:25 baggins +- rel 13 +- glibc hax0rs fucked up freopen so if all fds are closed it fails with EBADF + at dup3(0,0,0)/dup2(0,0), so just leave fd0 open for it to work + Revision 1.31 2011/06/11 21:09:20 zbyniu - idled.conf.template to /etc/idled not docs, pass CC, rel 12 ================================================================ Index: packages/idled/idled-freopen.patch diff -u /dev/null packages/idled/idled-freopen.patch:1.1 --- /dev/null Thu Jul 28 23:27:30 2011 +++ packages/idled/idled-freopen.patch Thu Jul 28 23:27:25 2011 @@ -0,0 +1,11 @@ +--- idled-1.16/idled.c~ 2011-07-28 23:17:52.159461540 +0200 ++++ idled-1.16/idled.c 2011-07-28 23:19:42.995695945 +0200 +@@ -1382,7 +1382,7 @@ + #endif /* RLIMIT_NOFILE */ + + /* Close all fds. */ +-#ifdef BSD_OS2 ++#if 1 + for (fd = 1; fd < nfds; ++fd) /* Don't close fd 0 on BSDI BSD/OS 2 */ + /* This works around some weird bug */ + #else ================================================================ ---- CVS-web: http://cvs.pld-linux.org/cgi-bin/cvsweb.cgi/packages/idled/idled.spec?r1=1.31&r2=1.32&f=u _______________________________________________ pld-cvs-commit mailing list [email protected] http://lists.pld-linux.org/mailman/listinfo/pld-cvs-commit
