Author: mvidner Date: Mon May 5 14:53:28 2008 New Revision: 47271 URL: http://svn.opensuse.org/viewcvs/yast?rev=47271&view=rev Log: Pass client arguments as literal strings, not YCP values. It broke for "/tmp/windomain\theuser-tmpdir" (bnc#382883). Modified: trunk/yast2/package/yast2.changes trunk/yast2/scripts/yast2 trunk/yast2/yast2.spec.in Modified: trunk/yast2/package/yast2.changes URL: http://svn.opensuse.org/viewcvs/yast/trunk/yast2/package/yast2.changes?rev=47271&r1=47270&r2=47271&view=diff ============================================================================== --- trunk/yast2/package/yast2.changes (original) +++ trunk/yast2/package/yast2.changes Mon May 5 14:53:28 2008 @@ -1,4 +1,10 @@ ------------------------------------------------------------------- +Mon May 5 14:52:54 CEST 2008 - mvidner@suse.cz + +- Pass client arguments as literal strings, not YCP values. + It broke for "/tmp/windomain\theuser-tmpdir" (bnc#382883). + +------------------------------------------------------------------- Fri May 2 14:07:24 CEST 2008 - lslezak@suse.cz - Mode::test(), PakageCallbacks - do not call UI:: functions in Modified: trunk/yast2/scripts/yast2 URL: http://svn.opensuse.org/viewcvs/yast/trunk/yast2/scripts/yast2?rev=47271&r1=47270&r2=47271&view=diff ============================================================================== --- trunk/yast2/scripts/yast2 (original) +++ trunk/yast2/scripts/yast2 Mon May 5 14:53:28 2008 @@ -214,12 +214,13 @@ shift fi -# Transform every argument into a ycp string, that is surround all -# args by ("..."). args may contain spaces. +# Pass the arguments to WFM::Args(): +# Surround all args by (...). args may contain spaces. +# Use -S to avoid YCP escaping (bnc#382883) a=("$@") -b=("${a[@]/#/(\"}") -c=("${b[@]/%/\")}") -set -- "${c[@]}" +b=("${a[@]/#/(}") +c=("${b[@]/%/)}") +set -- -S "${c[@]}" case "`/usr/bin/basename $0`" in YaST|yast|yast1|zast) Modified: trunk/yast2/yast2.spec.in URL: http://svn.opensuse.org/viewcvs/yast/trunk/yast2/yast2.spec.in?rev=47271&r1=47270&r2=47271&view=diff ============================================================================== --- trunk/yast2/yast2.spec.in (original) +++ trunk/yast2/yast2.spec.in Mon May 5 14:53:28 2008 @@ -10,8 +10,8 @@ # pre-requires for filling the sysconfig template (sysconfig.yast2) PreReq: %fillup_prereq -# ag_process, sublist -Requires: yast2-core >= 2.16.46 +# y2base foo -S (hello) UI +Requires: yast2-core >= 2.16.49 # Mod_UI Requires: yast2-ycp-ui-bindings >= 2.16.44 -- To unsubscribe, e-mail: yast-commit+unsubscribe@opensuse.org For additional commands, e-mail: yast-commit+help@opensuse.org