From 43f66174c2ef4b757dc56b1d2a5b8401ed7db0f9 Mon Sep 17 00:00:00 2001 From: "Ruben S. Montero" Date: Fri, 7 Nov 2014 13:27:52 +0100 Subject: [PATCH] bug #3300: Fix oneuser login for ruby 1.8.7 --- src/cli/one_helper.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/cli/one_helper.rb b/src/cli/one_helper.rb index cc3eaa22d2..5935c3f1e7 100644 --- a/src/cli/one_helper.rb +++ b/src/cli/one_helper.rb @@ -411,8 +411,8 @@ EOT def self.get_password print "Password: " system("stty", "-echo") - @@password=gets.chop begin + @@password = STDIN.gets.chop return @@password ensure system("stty", "echo")