diff options
author | Junio C Hamano <gitster@pobox.com> | 2012-08-08 15:14:57 -0700 |
---|---|---|
committer | Junio C Hamano <gitster@pobox.com> | 2012-08-08 15:14:58 -0700 |
commit | e5acacfb48b29e5d2c86d14b988321df086f2228 (patch) | |
tree | 837e4dd4bd0330942a788df1840ad5ee3975cf66 /compat | |
parent | Documentation: list git-credential in plumbing commands (diff) | |
parent | Enable HAVE_DEV_TTY for Solaris (diff) | |
download | tgif-e5acacfb48b29e5d2c86d14b988321df086f2228.tar.xz |
Merge branch 'bw/maint-1.7.9-solaris-getpass'
The recent update to terminal I/O interface to get passwords &c
interactively didn't quite work on Solaris.
* bw/maint-1.7.9-solaris-getpass:
Enable HAVE_DEV_TTY for Solaris
terminal: seek when switching between reading and writing
Diffstat (limited to 'compat')
-rw-r--r-- | compat/terminal.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/compat/terminal.c b/compat/terminal.c index 6d16c8fba0..bbb038dd01 100644 --- a/compat/terminal.c +++ b/compat/terminal.c @@ -59,6 +59,7 @@ char *git_terminal_prompt(const char *prompt, int echo) r = strbuf_getline(&buf, fh, '\n'); if (!echo) { + fseek(fh, SEEK_CUR, 0); putc('\n', fh); fflush(fh); } |