summaryrefslogtreecommitdiff
path: root/programs
diff options
context:
space:
mode:
authorBenjamin Otte <otte@gnome.org>2008-02-27 16:48:43 +0000
committerBenjamin Otte <otte@src.gnome.org>2008-02-27 16:48:43 +0000
commit5d2dcc365300ce06eaf792fcb0596e405791f4c1 (patch)
treea510bdf51c8b6e4c33531e4995f36c0476807a66 /programs
parent374082f8237276cc901e7f5393fc174a52c6dc31 (diff)
downloadgvfs-5d2dcc365300ce06eaf792fcb0596e405791f4c1.tar.gz
don't mess up my terminal when entering passwords
2008-02-27 Benjamin Otte <otte@gnome.org> * programs/gvfs-mount.c: (prompt_for): don't mess up my terminal when entering passwords svn path=/trunk/; revision=1407
Diffstat (limited to 'programs')
-rw-r--r--programs/gvfs-mount.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/programs/gvfs-mount.c b/programs/gvfs-mount.c
index 1865186b..4314a381 100644
--- a/programs/gvfs-mount.c
+++ b/programs/gvfs-mount.c
@@ -98,6 +98,9 @@ prompt_for (const char *prompt, const char *default_value, gboolean echo)
len = strlen (data);
if (len > 0 && data[len-1] == '\n')
data[len-1] = 0;
+
+ if (!echo)
+ g_print ("\n");
if (*data == 0 && default_value)
return g_strdup (default_value);