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

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


tar: set mtime and gid independently
 [rsc] --rw-rw-r-- M 467740 glenda sys 24068 Mar 12 09:15 sys/src/cmd/tar.c
	/n/sourcesdump/2006/0312/plan9/sys/src/cmd/tar.c:1027,1035 - 
	/n/sourcesdump/2006/0313/plan9/sys/src/cmd/tar.c:1027,1038
	  
	  			nulldir(&nd);
	  			nd.mtime = mtime;
	- 			if (isustar(hp))
	- 				nd.gid = hp->gname;
	  			dirfwstat(fd, &nd);
	+ 			if (isustar(hp)) {
	+ 				nulldir(&nd);
	+ 				nd.gid = hp->gname;
	+ 				dirfwstat(fd, &nd);
	+ 			}
	  		}
	  		close(fd);
	  	}


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.