https://bugzilla.novell.com/show_bug.cgi?id=266179 Summary: Please, do not call .target.bash_output from Perl when not neccessary Product: openSUSE 10.3 Version: Alpha 3 Platform: Other OS/Version: Other Status: NEW Severity: Enhancement Priority: P5 - None Component: YaST2 AssignedTo: jsuchome@novell.com ReportedBy: locilka@novell.com QAContact: jsrain@novell.com Index: src/UsersPluginLDAPShadowAccount.pm =================================================================== --- src/UsersPluginLDAPShadowAccount.pm (revision 37577) +++ src/UsersPluginLDAPShadowAccount.pm (working copy) @@ -65,11 +65,9 @@ # provide current value for shadowlastchange attribute sub last_change_is_now { - - my %out = %{SCR->Execute (".target.bash_output", "date +%s")}; - my $seconds = $out{"stdout"} || "0"; - chomp $seconds; - return sprintf ("%u", $seconds / (60*60*24)); + # time == current time in seconds from 1.1.1970 + # 86400 == number of seconds in one day + return int (time / 86400); } # update the list of current object classes when adding plugin -- Configure bugmail: https://bugzilla.novell.com/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug, or are watching someone who is.