Plan 9 from Bell Labs’s /usr/web/sources/contrib/uriel/changes/2006/0312/10

Copyright © 2021 Plan 9 Foundation.
Distributed under the MIT License.
Download the Plan 9 distribution.


upas/smtp: recognize \n (not just \r\n) as end-of-line.  perhaps a mistake.
 [rsc] --rw-rw-r-- M 467740 glenda sys 20134 Mar 12 13:13 sys/src/cmd/upas/smtp/smtp.c
	/n/sourcesdump/2006/0312/plan9/sys/src/cmd/upas/smtp/smtp.c:740,745 - 
	/n/sourcesdump/2006/0313/plan9/sys/src/cmd/upas/smtp/smtp.c:740,747
	  	reply = s_reset(reply);
	  	for(;;){
	  		line = getcrnl(reply);
	+ 		if(debug)
	+ 			Bflush(&berr);
	  		if(line == 0)
	  			return -1;
	  		if(!isdigit(line[0]) || !isdigit(line[1]) || !isdigit(line[2]))
	/n/sourcesdump/2006/0312/plan9/sys/src/cmd/upas/smtp/smtp.c:985,990 - 
	/n/sourcesdump/2006/0313/plan9/sys/src/cmd/upas/smtp/smtp.c:987,993
	  		case '\r':
	  			c = Bgetc(&bin);
	  			if(c == '\n'){
	+ 		case '\n':
	  				s_putc(s, c);
	  				if(debug)
	  					Bputc(&berr, c);


Bell Labs OSI certified Powered by Plan 9

(Return to Plan 9 Home Page)

Copyright © 2021 Plan 9 Foundation. All Rights Reserved.
Comments to webmaster@9p.io.