The Samba-Bugzilla – Attachment 3286 Details for
Bug 5456
^C in smbpasswd leaves the terminal in a non-echo state.
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Requests
|
Help
|
New Account
|
Log In
[x]
|
Forgot Password
Login:
[x]
[patch]
Patch
look (text/plain), 686 bytes, created by
Jeremy Allison
on 2008-05-09 16:53:59 UTC
(
hide
)
Description:
Patch
Filename:
MIME Type:
Creator:
Jeremy Allison
Created:
2008-05-09 16:53:59 UTC
Size:
686 bytes
patch
obsolete
>diff --git a/source/lib/replace/getpass.c b/source/lib/replace/getpass.c >index 73333b9..0be618f 100644 >--- a/source/lib/replace/getpass.c >+++ b/source/lib/replace/getpass.c >@@ -187,10 +187,6 @@ char *rep_getpass(const char *prompt) > in_fd = fileno(in); > if (fgets(buf, bufsize, in) == NULL) { > buf[0] = 0; >- if (in && in != stdin) { >- fclose(in); >- } >- return buf; > } > } > nread = strlen(buf); >@@ -201,8 +197,9 @@ char *rep_getpass(const char *prompt) > > /* Restore echoing. */ > if (echo_off) { >- if (gotintr && in_fd == -1) >+ if (gotintr && in_fd == -1) { > in = fopen ("/dev/tty", "w+"); >+ } > if (in != NULL) > tcsetattr (fileno (in), TCSANOW, &t); > }
You cannot view the attachment while viewing its details because your browser does not support IFRAMEs.
View the attachment on a separate page
.
View Attachment As Raw
Actions:
View
Attachments on
bug 5456
: 3286 |
3287