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

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


Fix usage.
 [rsc] --rw-rw-r-- M 73506 rsc sys 7027 Jan  7 11:39 sys/src/cmd/aquarela/aquarela.c
	/n/sourcesdump/2006/0107/plan9/sys/src/cmd/aquarela/aquarela.c:176,183 - 
	/n/sourcesdump/2006/0108/plan9/sys/src/cmd/aquarela/aquarela.c:176,183
	  void
	  usage(void)
	  {
	- 	print("usage: aquarela [-u unicodevalue]\n");
	- 	threadexitsall("");
	+ 	fprint(2, "usage: %s [-d debug-opt] [-n] [-p] [-u 1|0] [-w workgroup]\n", argv0);
	+ 	threadexitsall("usage");
	  }
	  
	  static void
 [rsc] --rw-rw-r-- M 73506 rsc sys 1141 Jan  7 11:39 sys/src/cmd/aquarela/smbglobals.c
	/n/sourcesdump/2006/0107/plan9/sys/src/cmd/aquarela/smbglobals.c:36,43 - 
	/n/sourcesdump/2006/0108/plan9/sys/src/cmd/aquarela/smbglobals.c:36,46
	  	if (smbglobals.serverinfo.remark == nil)
	  		smbglobals.serverinfo.remark = "This is a default server comment";
	  	if (smbglobals.log.fd < 0)
	- 		if (client)
	+ 		if (client){
	  			smbglobals.log.fd = create("client.log", OWRITE|OTRUNC, 0666);
	- 		else
	- 			smbglobals.log.fd = create("aquarela.log", OWRITE|OTRUNC, 0666);
	+ 		}
	+ 		else{
	+ 			if (access("/sys/log/aquarela", 2) == 0)
	+ 				smbglobals.log.fd = open("/sys/log/aquarela", OWRITE);
	+ 		}
	  }


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.