http://bugzilla.suse.com/show_bug.cgi?id=930909
Martin Vidner changed:
What |Removed |Added
----------------------------------------------------------------------------
CC| |mvidner@suse.com
Summary|"Use this password for |"Use this password for
|system administrator" |system administrator"
|option is not applied if |option is not applied if a
|weak password is used. |weak (0) password is used.
--- Comment #2 from Martin Vidner ---
Josef, you can use
if ($root_pwd ne "")
note the string comparison 'ne', not the numeric comparison '!='.
https://metacpan.org/pod/perlop#Equality-Operators
But then you have the same bug, only with the empty password. It seems that a
better solution would be to initialize the variable to undef and check if
(defined($root_pwd))
But you'd have to check whether users of the library don't treat "" specially.
Oh, and someone might think this bug is a feature and complain when we fix it
:)
--
You are receiving this mail because:
You are on the CC list for the bug.