Commit 2895acb6 authored by Andrew Bartlett's avatar Andrew Bartlett Committed by Gerald (Jerry) Carter
Browse files

r1128: The end-of-file is not the end of the world, so don't make a load DEBUG() about it.

Andrew Bartlett
(This used to be commit 4da976dbd07e70726055cc4251fd1c26f63b3b2c)
parent c8f63452
Loading
Loading
Loading
Loading
+7 −3
Original line number Diff line number Diff line
@@ -1594,10 +1594,14 @@ static void manage_squid_request(enum stdio_helper_mode helper_mode, stdio_helpe

	/* this is not a typo - x_fgets doesn't work too well under squid */
	if (fgets(buf, sizeof(buf)-1, stdin) == NULL) {
		if (ferror(stdin)) {
			DEBUG(1, ("fgets() failed! dying..... errno=%d (%s)\n", ferror(stdin),
				  strerror(ferror(stdin))));
			
			exit(1);    /* BIIG buffer */
		}
		exit(0);
	}
    
	c=memchr(buf,'\n',sizeof(buf)-1);
	if (c) {