Author: kmachalkova Date: Thu Dec 18 10:29:33 2008 New Revision: 54257 URL: http://svn.opensuse.org/viewcvs/yast?rev=54257&view=rev Log: Enforce specifying mount point if the user decides to mount the partition (#441130) Modified: branches/SuSE-Code-11-Branch/storage/storage/src/include/custom_part_lib.ycp Modified: branches/SuSE-Code-11-Branch/storage/storage/src/include/custom_part_lib.ycp URL: http://svn.opensuse.org/viewcvs/yast/branches/SuSE-Code-11-Branch/storage/storage/src/include/custom_part_lib.ycp?rev=54257&r1=54256&r2=54257&view=diff ============================================================================== --- branches/SuSE-Code-11-Branch/storage/storage/src/include/custom_part_lib.ycp (original) +++ branches/SuSE-Code-11-Branch/storage/storage/src/include/custom_part_lib.ycp Thu Dec 18 10:29:33 2008 @@ -380,7 +380,8 @@ if (mount == "") { - allowed = true; + Popup::Error(_("Mount point must not be empty.")); + allowed = false; } else if (used_fs == `swap && mount != "swap") { @@ -508,7 +509,7 @@ new["mount"] = deletechars( new["mount"]:"", " \t" ); if( old["mount"]:"" != new["mount"]:"" ) new["inactive"] = true; - if( ret["ok"]:false && size(new["mount"]:"")>0 ) + if( ret["ok"]:false ) { boolean crypt_fs = false; if( !check_mount_point( Storage::GetTargetMap(), dev, new )) -- To unsubscribe, e-mail: yast-commit+unsubscribe@opensuse.org For additional commands, e-mail: yast-commit+help@opensuse.org