[yast-commit] r56988 - in /trunk/core: liby2/src/Y2StdioComponent.cc package/yast2-core.changes
Author: mvidner Date: Mon Apr 27 13:38:09 2009 New Revision: 56988 URL: http://svn.opensuse.org/viewcvs/yast?rev=56988&view=rev Log: exit only at EOF, not on parse error (bnc#498407). Modified: trunk/core/liby2/src/Y2StdioComponent.cc trunk/core/package/yast2-core.changes Modified: trunk/core/liby2/src/Y2StdioComponent.cc URL: http://svn.opensuse.org/viewcvs/yast/trunk/core/liby2/src/Y2StdioComponent.cc?rev=56988&r1=56987&r2=56988&view=diff ============================================================================== --- trunk/core/liby2/src/Y2StdioComponent.cc (original) +++ trunk/core/liby2/src/Y2StdioComponent.cc Mon Apr 27 13:38:09 2009 @@ -99,8 +99,15 @@ send (arglist); YCPValue value = YCPNull(); - while (!(value = receive()).isNull()) + while (!parser.atEOF()) { + value = receive(); + if (value.isNull()) + { + send (value); // bnc#498407 + continue; // parse error, or EOF + } + if (value->isTerm() && value->asTerm()->size() == 1 && value->asTerm()->name () == "result") { Modified: trunk/core/package/yast2-core.changes URL: http://svn.opensuse.org/viewcvs/yast/trunk/core/package/yast2-core.changes?rev=56988&r1=56987&r2=56988&view=diff ============================================================================== --- trunk/core/package/yast2-core.changes (original) +++ trunk/core/package/yast2-core.changes Mon Apr 27 13:38:09 2009 @@ -1,4 +1,9 @@ ------------------------------------------------------------------- +Mon Apr 27 13:37:29 CEST 2009 - mvidner@suse.cz + +- Y2StdioComponent: exit only at EOF, not on parse error (bnc#498407). + +------------------------------------------------------------------- Fri Apr 24 13:49:29 CEST 2009 - mvidner@suse.cz - agent-ini: do not truncate strings longer than 2048 -- To unsubscribe, e-mail: yast-commit+unsubscribe@opensuse.org For additional commands, e-mail: yast-commit+help@opensuse.org
participants (1)
-
mvidner@svn.opensuse.org