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

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


faces: avoid 512x directories
 [rsc] --rw-rw-r-- M 413509 glenda sys 10551 Mar 11 09:20 sys/src/cmd/faces/facedb.c
	/n/sourcesdump/2006/0311/plan9/sys/src/cmd/faces/facedb.c:275,281 - 
	/n/sourcesdump/2006/0312/plan9/sys/src/cmd/faces/facedb.c:275,281
	  	while((n = dirread(fd, &d)) > 0){
	  		for(i=0; i<n; i++){
	  			if((d[i].mode&DMDIR)
	- 			&& strncmp(d[i].name, "512x512x", 8) != 0
	+ 			&& strncmp(d[i].name, "512x", 4) != 0
	  			&& strncmp(d[i].name, "48x48x", 6) != 0){
	  				ndir = emalloc(strlen(dir)+1+strlen(d[i].name)+1);
	  				strcpy(ndir, dir);


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