On Wed, Jun 15, 2011 at 03:23:29AM -0000, [email protected] wrote:
> Author: xwhu
> Date: Wed Jun 15 05:23:29 2011
> New Revision: 64372
> 
> URL: http://svn.opensuse.org/viewcvs/yast?rev=64372&view=rev
> Log:
> Fix quoting issues
> 
> Modified:
>     trunk/cluster/src/Cluster.ycp
> 
> Modified: trunk/cluster/src/Cluster.ycp
> URL: 
> http://svn.opensuse.org/viewcvs/yast/trunk/cluster/src/Cluster.ycp?rev=64372&r1=64371&r2=64372&view=diff
> ==============================================================================
> --- trunk/cluster/src/Cluster.ycp (original)
> +++ trunk/cluster/src/Cluster.ycp Wed Jun 15 05:23:29 2011
> @@ -438,10 +438,10 @@
>      sleep(sl);
>  
>       if (corokey != "") {
> -             map out = (map)SCR::Execute(.target.bash_output, "echo " + 
> corokey + " | uudecode -o /etc/corosync/authkey");
> +             map out = (map)SCR::Execute(.target.bash_output, "echo '" + 
> corokey + "' | uudecode -o /etc/corosync/authkey");

if corokey can include apostrophes, then use:
"echo '" + String::Quote(corokey) + "' |..."

>       }
>       if (csync2key != "") {
> -         map out = (map)SCR::Execute(.target.bash_output, "echo " + 
> csync2key + " | uudecode -o /etc/corosync/authkey");
> +         map out = (map)SCR::Execute(.target.bash_output, "echo '" + 
> csync2key + "' | uudecode -o /etc/corosync/authkey");
>       }
>       if (global_startopenais == true) {
>               SCR::Execute(.target.bash_output, "/sbin/chkconfig openais on");
> 
> -- 
> To unsubscribe, e-mail: [email protected]
> For additional commands, e-mail: [email protected]
> 
-- 
Martin Vidner, YaST developer
http://en.opensuse.org/User:Mvidner

Kuracke oddeleni v restauraci je jako fekalni oddeleni v bazenu

Attachment: pgprxE4434XwW.pgp
Description: PGP signature

Reply via email to