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 | |
parent | fa0aad4ff5079132e0a163daa701506d652b2bf8 (diff) | |
parent | 436783c95a59cca00a7cca1219666bb0af67cb81 (diff) | |
download | git-e5acacfb48b29e5d2c86d14b988321df086f2228.tar.gz git-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
-rw-r--r-- | Makefile | 1 | ||||
-rw-r--r-- | compat/terminal.c | 1 |
2 files changed, 2 insertions, 0 deletions
@@ -1014,6 +1014,7 @@ ifeq ($(uname_S),SunOS) NO_REGEX = YesPlease NO_FNMATCH_CASEFOLD = YesPlease NO_MSGFMT_EXTENDED_OPTIONS = YesPlease + HAVE_DEV_TTY = YesPlease ifeq ($(uname_R),5.6) SOCKLEN_T = int NO_HSTRERROR = YesPlease diff --git a/compat/terminal.c b/compat/terminal.c index 6d16c8fba..bbb038dd0 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); } |