Author: mvidner Date: Tue Oct 2 15:53:27 2007 New Revision: 41199 URL: http://svn.opensuse.org/viewcvs/yast?rev=41199&view=rev Log: Close unneeded file descriptors before execing another program (#223602). Modified: trunk/core/VERSION trunk/core/agent-system/src/ShellCommand.cc trunk/core/package/yast2-core.changes Modified: trunk/core/VERSION URL: http://svn.opensuse.org/viewcvs/yast/trunk/core/VERSION?rev=41199&r1=411... ============================================================================== --- trunk/core/VERSION (original) +++ trunk/core/VERSION Tue Oct 2 15:53:27 2007 @@ -1 +1 @@ -2.15.12 +2.16.0 Modified: trunk/core/agent-system/src/ShellCommand.cc URL: http://svn.opensuse.org/viewcvs/yast/trunk/core/agent-system/src/ShellComman... ============================================================================== --- trunk/core/agent-system/src/ShellCommand.cc (original) +++ trunk/core/agent-system/src/ShellCommand.cc Tue Oct 2 15:53:27 2007 @@ -142,6 +142,12 @@ ExternalProgram::renumber_fd (pipe2[1], 1); close (pipe2[0]); + // #223602 + // 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: trunk/core/package/yast2-core.changes URL: http://svn.opensuse.org/viewcvs/yast/trunk/core/package/yast2-core.changes?r... ============================================================================== --- trunk/core/package/yast2-core.changes (original) +++ trunk/core/package/yast2-core.changes Tue Oct 2 15:53:27 2007 @@ -1,4 +1,11 @@ ------------------------------------------------------------------- +Tue Oct 2 15:53:06 CEST 2007 - mvidner@suse.cz + +- Close unneeded file descriptors before execing another + program (#223602). +- 2.16.0 + +------------------------------------------------------------------- Thu Sep 13 09:56:14 CEST 2007 - mvidner@suse.cz - UI::CollectUserInput: fixed crash introduced when namespacifying, -- To unsubscribe, e-mail: yast-commit+unsubscribe@opensuse.org For additional commands, e-mail: yast-commit+help@opensuse.org