PERFORCE change 23045 for review
Brian Feldman
green at freebsd.org
Thu Jan 2 17:03:18 GMT 2003
http://perforce.freebsd.org/chv.cgi?CH=23045
Change 23045 by green at green_laptop_2 on 2003/01/02 09:02:32
* In SEBSD's query_user_context(), detect an EOF and stop looping
for input in that case.
Affected files ...
.. //depot/projects/trustedbsd/mac/lib/libsebsd/query_user_context.c#2 edit
Differences ...
==== //depot/projects/trustedbsd/mac/lib/libsebsd/query_user_context.c#2 (text+ko) ====
@@ -63,6 +63,10 @@
return (-1);
if (response == NULL)
continue;
+ if (response[0] == '\0') { /* EOF */
+ free(response);
+ return (-1);
+ }
if (sscanf(response, "%d", &number_response) != 1 ||
number_response < 1 || number_response > length) {
(void)pam_prompt(pamh, PAM_TEXT_INFO, &discard,
To Unsubscribe: send mail to majordomo at trustedbsd.org
with "unsubscribe trustedbsd-cvs" in the body of the message
More information about the trustedbsd-cvs
mailing list