Plan 9 from Bell Labs’s /usr/web/sources/contrib/uriel/changes/2006/0320/2

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


httpd: used and not set bug
 [rsc] --rw-rw-r-- M 898628 glenda sys 3054 Mar 20 08:46 sys/src/cmd/ip/httpd/log.c
	/n/sourcesdump/2006/0320/plan9/sys/src/cmd/ip/httpd/log.c:44,49 - 
	/n/sourcesdump/2006/0321/plan9/sys/src/cmd/ip/httpd/log.c:44,50
	  
	  	if(c == nil)
	  		return;
	+ 	p = c->private;
	  	bufe = buf + sizeof(buf);
	  	now = time(nil);
	  	tm = gmtime(now);
	/n/sourcesdump/2006/0320/plan9/sys/src/cmd/ip/httpd/log.c:52,58 - 
	/n/sourcesdump/2006/0321/plan9/sys/src/cmd/ip/httpd/log.c:53,58
	  	/* verbose logfile, for research on web traffic */
	  	logfd = logall[today & 1];
	  	if(logfd > 0){
	- 		p = c->private;
	  		if(c->hstop == c->header || c->hstop[-1] != '\n')
	  			*c->hstop = '\n';
	  		*c->hstop = '\0';


Bell Labs OSI certified Powered by Plan 9

(Return to Plan 9 Home Page)

Copyright © 2021 Plan 9 Foundation. All Rights Reserved.
Comments to [email protected].