diff options
author | markm <markm@FreeBSD.org> | 2001-06-04 20:08:55 +0000 |
---|---|---|
committer | markm <markm@FreeBSD.org> | 2001-06-04 20:08:55 +0000 |
commit | 2357540bf08c861c50a2b6792e9819cee136e3db (patch) | |
tree | 15caeede132b2ff4ddae37cfaa87332e6df0230d /contrib | |
parent | ccc10801dbcbae2d74e33911a4795ad86e91be01 (diff) | |
download | FreeBSD-src-2357540bf08c861c50a2b6792e9819cee136e3db.zip FreeBSD-src-2357540bf08c861c50a2b6792e9819cee136e3db.tar.gz |
Return an empty string rather than an error at EOF.
Diffstat (limited to 'contrib')
-rw-r--r-- | contrib/libpam/libpam_misc/misc_conv.c | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/contrib/libpam/libpam_misc/misc_conv.c b/contrib/libpam/libpam_misc/misc_conv.c index f2179af..1395b17 100644 --- a/contrib/libpam/libpam_misc/misc_conv.c +++ b/contrib/libpam/libpam_misc/misc_conv.c @@ -194,9 +194,11 @@ static char *read_string(int echo, const char *prompt) return input; /* return malloc()ed string */ } else if (nc == 0) { /* Ctrl-D */ + char *input; + D(("user did not want to type anything")); - fprintf(stderr, "\n"); - break; + input = x_strdup(""); + return input; /* return malloc()ed string */ } } } |