[yast-commit] r40993 - in /trunk/network: package/yast2-network.changes src/clients/save_network.ycp
Author: mvidner Date: Thu Sep 20 16:59:39 2007 New Revision: 40993 URL: http://svn.opensuse.org/viewcvs/yast?rev=40993&view=rev Log: Escape quotes in NAME in save_network (#305343). Modified: trunk/network/package/yast2-network.changes trunk/network/src/clients/save_network.ycp Modified: trunk/network/package/yast2-network.changes URL: http://svn.opensuse.org/viewcvs/yast/trunk/network/package/yast2-network.changes?rev=40993&r1=40992&r2=40993&view=diff ============================================================================== --- trunk/network/package/yast2-network.changes (original) +++ trunk/network/package/yast2-network.changes Thu Sep 20 16:59:39 2007 @@ -1,4 +1,9 @@ ------------------------------------------------------------------- +Thu Sep 20 16:59:25 CEST 2007 - mvidner@suse.cz + +- Escape quotes in NAME in save_network (#305343). + +------------------------------------------------------------------- Tue Sep 18 14:54:18 CEST 2007 - kmachalkova@suse.cz - Removed all udev rules workarounds (manually removing lockfiles, Modified: trunk/network/src/clients/save_network.ycp URL: http://svn.opensuse.org/viewcvs/yast/trunk/network/src/clients/save_network.ycp?rev=40993&r1=40992&r2=40993&view=diff ============================================================================== --- trunk/network/src/clients/save_network.ycp (original) +++ trunk/network/src/clients/save_network.ycp Thu Sep 20 16:59:39 2007 @@ -249,8 +249,9 @@ string ifcfg = sformat("ifcfg-%1", InstallInf["netdevice"]:""); string hw_name = BuildDescription(NetworkDevices::device_type(ifcfg), NetworkDevices::device_num(ifcfg), $["dev_name":InstallInf["netdevice"]:""], hardware); + // protect special characters, #305343 if (size(hw_name)>0) - network_configuration = sformat("%1NAME='%2'\n", network_configuration, hw_name); + network_configuration = sformat("%1NAME='%2'\n", network_configuration, String::Quote (hw_name)); y2milestone("Network Configuration:\n%1\nifcfg file: %2", network_configuration, ifcfg); -- 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