Plan 9 from Bell Labs’s /usr/web/sources/contrib/uriel/changes/2005/1202/3

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


Fall back if cs fails to be useful.
 [rsc] --rw-rw-r-- M 615310 glenda sys 18036 Dec  2 15:05 sys/src/cmd/auth/factotum/util.c
	/n/sourcesdump/2005/1202/plan9/sys/src/cmd/auth/factotum/util.c:26,37 - 
	/n/sourcesdump/2005/1203/plan9/sys/src/cmd/auth/factotum/util.c:26,36
	  _authdial(char *net, char *authdom)
	  {
	  	int fd;
	- 	int vanilla;
	  
	- 	vanilla = net==nil || strcmp(net, "/net")==0;
	- 
	- 	if(!vanilla || bindnetcs()>=0)
	- 		return authdial(net, authdom);
	+ 	if(bindnetcs() >= 0 && (fd=authdial(net, authdom)) >= 0)
	+ 		return fd;
	+ 	if(net != nil && strcmp(net, "/net") != 0)
	+ 		return -1;
	  
	  	/* use the auth sever passed to us as an arg */
	  	if(authaddr == nil)


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].