mirror of
https://github.com/samba-team/samba.git
synced 2025-08-04 08:22:08 +03:00
committed by
Stefan Metzmacher
parent
8f58d39c0c
commit
effda48a26
@ -187,6 +187,9 @@ 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;
|
||||
}
|
||||
}
|
||||
|
Reference in New Issue
Block a user