commit 9318886328a7c1c2717ffebff99636495de985cd

    Don't echo passphrase to terminal when asking for it.

diff --git a/bin/schleuder-newlist b/bin/schleuder-newlist
index 4bdf3e1..10463f1 100755
--- a/bin/schleuder-newlist
+++ b/bin/schleuder-newlist
@@ -119,7 +119,8 @@ class ListCreator
       list_passphrase = ListCreator::verify_strvar(
           args[:list_passphrase] || '', 
           interactive,
-          "the lists' key passphrase"
+          "the lists' key passphrase",
+          false
           )
     end
 
@@ -186,9 +187,14 @@ class ListCreator
     list.members = Array.new(1,Schleuder::Member.new({ :email => 
list_initmember }))
   end
 
-  def self.verify_strvar(var,interactive,question)
+  def self.verify_strvar(var,interactive,question, echo=true)
     if (var.nil? or var.empty?) and interactive then
-      var = ask(question+": ")
+      str = question+": "
+      if echo
+        var = ask(str)
+      else
+        var = ask(str) { |question| question.echo = '*' }
+      end
     end
     raise NewListError,"Missing mandatory variable: "+question if (var.nil? or 
var.empty?)
     var

-- 
To receive the public gpg key for this address send a
mail to schleuder2-send...@nadir.org.

Attachment: pgpNLyaL8HMzx.pgp
Description: PGP signature

Reply via email to