Skip site navigation (1)Skip section navigation (2)
Date:      Thu, 2 Jan 2003 09:03:18 -0800 (PST)
From:      Brian Feldman <green@FreeBSD.org>
To:        Perforce Change Reviews <perforce@freebsd.org>
Subject:   PERFORCE change 23045 for review
Message-ID:  <200301021703.h02H3Ib8039139@repoman.freebsd.org>

next in thread | raw e-mail | index | archive | help
http://perforce.freebsd.org/chv.cgi?CH=23045

Change 23045 by green@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@FreeBSD.org
with "unsubscribe p4-projects" in the body of the message




Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?200301021703.h02H3Ib8039139>