Skip to content

Commit 3f98823

Browse files
committed
Merge branch 'bw/maint-1.7.9-solaris-getpass' into maint-1.7.11
* bw/maint-1.7.9-solaris-getpass: Enable HAVE_DEV_TTY for Solaris terminal: seek when switching between reading and writing
2 parents 9e0833c + 436783c commit 3f98823

File tree

2 files changed

+2
-0
lines changed

2 files changed

+2
-0
lines changed

Makefile

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1005,6 +1005,7 @@ ifeq ($(uname_S),SunOS)
10051005
NO_REGEX = YesPlease
10061006
NO_FNMATCH_CASEFOLD = YesPlease
10071007
NO_MSGFMT_EXTENDED_OPTIONS = YesPlease
1008+
HAVE_DEV_TTY = YesPlease
10081009
ifeq ($(uname_R),5.6)
10091010
SOCKLEN_T = int
10101011
NO_HSTRERROR = YesPlease

compat/terminal.c

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -59,6 +59,7 @@ char *git_terminal_prompt(const char *prompt, int echo)
5959

6060
r = strbuf_getline(&buf, fh, '\n');
6161
if (!echo) {
62+
fseek(fh, SEEK_CUR, 0);
6263
putc('\n', fh);
6364
fflush(fh);
6465
}

0 commit comments

Comments
 (0)