Author: jsrain Date: Thu Nov 5 16:25:03 2009 New Revision: 59341 URL: http://svn.opensuse.org/viewcvs/yast?rev=59341&view=rev Log: close unneeded file descriptors before execing another program (bnc#441054) Modified: branches/SuSE-SLE-10-SP3-Branch/core/VERSION branches/SuSE-SLE-10-SP3-Branch/core/agent-system/src/ShellCommand.cc branches/SuSE-SLE-10-SP3-Branch/core/package/yast2-core.changes Modified: branches/SuSE-SLE-10-SP3-Branch/core/VERSION URL: http://svn.opensuse.org/viewcvs/yast/branches/SuSE-SLE-10-SP3-Branch/core/VERSION?rev=59341&r1=59340&r2=59341&view=diff ============================================================================== --- branches/SuSE-SLE-10-SP3-Branch/core/VERSION (original) +++ branches/SuSE-SLE-10-SP3-Branch/core/VERSION Thu Nov 5 16:25:03 2009 @@ -1 +1 @@ -2.13.44 +2.13.45 Modified: branches/SuSE-SLE-10-SP3-Branch/core/agent-system/src/ShellCommand.cc URL: http://svn.opensuse.org/viewcvs/yast/branches/SuSE-SLE-10-SP3-Branch/core/agent-system/src/ShellCommand.cc?rev=59341&r1=59340&r2=59341&view=diff ============================================================================== --- branches/SuSE-SLE-10-SP3-Branch/core/agent-system/src/ShellCommand.cc (original) +++ branches/SuSE-SLE-10-SP3-Branch/core/agent-system/src/ShellCommand.cc Thu Nov 5 16:25:03 2009 @@ -142,6 +142,12 @@ ExternalProgram::renumber_fd (pipe2[1], 1); close (pipe2[0]); + // #223602 #441054 + // close all file descriptors above stderr + for ( int i = getdtablesize() - 1; i > 2; --i ) { + close( i ); + } + ret = system (command.c_str ()); if (WIFEXITED (ret)) ret = WEXITSTATUS (ret); Modified: branches/SuSE-SLE-10-SP3-Branch/core/package/yast2-core.changes URL: http://svn.opensuse.org/viewcvs/yast/branches/SuSE-SLE-10-SP3-Branch/core/package/yast2-core.changes?rev=59341&r1=59340&r2=59341&view=diff ============================================================================== --- branches/SuSE-SLE-10-SP3-Branch/core/package/yast2-core.changes (original) +++ branches/SuSE-SLE-10-SP3-Branch/core/package/yast2-core.changes Thu Nov 5 16:25:03 2009 @@ -1,4 +1,11 @@ ------------------------------------------------------------------- +Thu Nov 5 15:11:47 CET 2009 - jsrain@suse.cz + +- close unneeded file descriptors before execing another + program (bnc#441054) +- 2.13.45 + +------------------------------------------------------------------- Fri May 15 12:21:15 CEST 2009 - juhliarik@suse.cz - added WFM::ClientExists because it is required for reipl -- To unsubscribe, e-mail: yast-commit+unsubscribe@opensuse.org For additional commands, e-mail: yast-commit+help@opensuse.org