Denis Vlasenko 
							
						 
					 
					
						
						
							
						
						714701c890 
					 
					
						
						
							
							tar et al: die if bb_copyfd_size copies less than asked for.  
						
						 
						
						... 
						
						
						
						(we have bb_copyfd_exact_size now for that kind of usage) 
						
						
					 
					
						2006-12-22 00:21:07 +00:00  
					
					
						 
						
						
							
							
							 
							
							
							
							
							 
						
					 
				 
			
				
					
						
							
							
								 
								Denis Vlasenko 
							
						 
					 
					
						
						
							
						
						c88894602d 
					 
					
						
						
							
							tar: report error if child dies while writing out the end of tarball  
						
						 
						
						... 
						
						
						
						(e.g. out of disk space). 
						
						
					 
					
						2006-12-17 19:08:20 +00:00  
					
					
						 
						
						
							
							
							 
							
							
							
							
							 
						
					 
				 
			
				
					
						
							
							
								 
								Denis Vlasenko 
							
						 
					 
					
						
						
							
						
						9f739445cd 
					 
					
						
						
							
							inline strcmp(s, "-") [actually macro-ize it for now - gcc is too stupid]  
						
						 
						
						
						
						
					 
					
						2006-12-16 23:49:13 +00:00  
					
					
						 
						
						
							
							
							 
							
							
							
							
							 
						
					 
				 
			
				
					
						
							
							
								 
								Bernhard Reutner-Fischer 
							
						 
					 
					
						
						
							
						
						6f0540e7ec 
					 
					
						
						
							
							- remove functions marked as LEGACY in SUSv3 and use their modern counterparts.  
						
						 
						
						
						
						
					 
					
						2006-12-12 11:50:44 +00:00  
					
					
						 
						
						
							
							
							 
							
							
							
							
							 
						
					 
				 
			
				
					
						
							
							
								 
								Denis Vlasenko 
							
						 
					 
					
						
						
							
						
						c61852a02b 
					 
					
						
						
							
							fix support for globally disabling --long-options.  
						
						 
						
						... 
						
						
						
						(disabling them saves ~4K on fully configured bbox) 
						
						
					 
					
						2006-11-29 11:09:43 +00:00  
					
					
						 
						
						
							
							
							 
							
							
							
							
							 
						
					 
				 
			
				
					
						
							
							
								 
								Denis Vlasenko 
							
						 
					 
					
						
						
							
						
						30d7a346e6 
					 
					
						
						
							
							tar: fix misplaced --exclude long option definition  
						
						 
						
						
						
						
					 
					
						2006-11-27 20:24:40 +00:00  
					
					
						 
						
						
							
							
							 
							
							
							
							
							 
						
					 
				 
			
				
					
						
							
							
								 
								Denis Vlasenko 
							
						 
					 
					
						
						
							
						
						cf749bc10c 
					 
					
						
						
							
							small fixes:  
						
						 
						
						... 
						
						
						
						fix xstrdup to not grossly overallocate memory
use xopen instean of xopen3 in several places
etc. 
						
						
					 
					
						2006-11-26 15:45:17 +00:00  
					
					
						 
						
						
							
							
							 
							
							
							
							
							 
						
					 
				 
			
				
					
						
							
							
								 
								Denis Vlasenko 
							
						 
					 
					
						
						
							
						
						b596335868 
					 
					
						
						
							
							tar: correctly skip (and warn about) pax headers.  
						
						 
						
						... 
						
						
						
						plug memory leak. save 50 bytes.
Wooohooo! we finally can unpack kernel tarballs! 
						
						
					 
					
						2006-11-26 01:46:59 +00:00  
					
					
						 
						
						
							
							
							 
							
							
							
							
							 
						
					 
				 
			
				
					
						
							
							
								 
								Denis Vlasenko 
							
						 
					 
					
						
						
							
						
						7725d0ff5c 
					 
					
						
						
							
							tar: add support for FEATURE_TAR_GNU_EXTENSIONS so than we can save  
						
						 
						
						... 
						
						
						
						long names now. We were able to read such tars, but not create.
+275 bytes. Without FEATURE_TAR_GNU_EXTENSIONS: -25 bytes.
We still cannot unpack Linux kernels, but not for long ;) 
						
						
					 
					
						2006-11-25 23:56:50 +00:00  
					
					
						 
						
						
							
							
							 
							
							
							
							
							 
						
					 
				 
			
				
					
						
							
							
								 
								Denis Vlasenko 
							
						 
					 
					
						
						
							
						
						87cd4a87e3 
					 
					
						
						
							
							tar: small fix and small optimization  
						
						 
						
						
						
						
					 
					
						2006-11-25 23:47:32 +00:00  
					
					
						 
						
						
							
							
							 
							
							
							
							
							 
						
					 
				 
			
				
					
						
							
							
								 
								Denis Vlasenko 
							
						 
					 
					
						
						
							
						
						f2408e6c3f 
					 
					
						
						
							
							tar: abort if tarring up file larger that 64Gb  
						
						 
						
						... 
						
						
						
						(otherwise we will produce garbled tarfile) 
						
						
					 
					
						2006-11-25 14:48:09 +00:00  
					
					
						 
						
						
							
							
							 
							
							
							
							
							 
						
					 
				 
			
				
					
						
							
							
								 
								Denis Vlasenko 
							
						 
					 
					
						
						
							
						
						3feb2fc535 
					 
					
						
						
							
							tar: fix multiple -t and/or -v options handling.  
						
						 
						
						... 
						
						
						
						do not process list of files to tar up in reverse order. 
						
						
					 
					
						2006-11-24 21:55:55 +00:00  
					
					
						 
						
						
							
							
							 
							
							
							
							
							 
						
					 
				 
			
				
					
						
							
							
								 
								Denis Vlasenko 
							
						 
					 
					
						
						
							
						
						d031ffa623 
					 
					
						
						
							
							tar: sanitize option handling  
						
						 
						
						
						
						
					 
					
						2006-11-24 21:54:44 +00:00  
					
					
						 
						
						
							
							
							 
							
							
							
							
							 
						
					 
				 
			
				
					
						
							
							
								 
								Denis Vlasenko 
							
						 
					 
					
						
						
							
						
						b8a8e601df 
					 
					
						
						
							
							tar: small fixes:  
						
						 
						
						... 
						
						
						
						* size-optimize mapping code
* kill double close 
						
						
					 
					
						2006-11-24 14:59:45 +00:00  
					
					
						 
						
						
							
							
							 
							
							
							
							
							 
						
					 
				 
			
				
					
						
							
							
								 
								Denis Vlasenko 
							
						 
					 
					
						
						
							
						
						c50f370f98 
					 
					
						
						
							
							tar: cache [ug]id->username/groupname mappings. Cuts down amount  
						
						 
						
						... 
						
						
						
						of open/read/close of /etc/passwd and /etc/group
dramatically (we were rereading those for each untarred file!!!) 
						
						
					 
					
						2006-11-24 14:57:31 +00:00  
					
					
						 
						
						
							
							
							 
							
							
							
							
							 
						
					 
				 
			
				
					
						
							
							
								 
								Denis Vlasenko 
							
						 
					 
					
						
						
							
						
						4fbb584a0e 
					 
					
						
						
							
							tar: cry murder and bail out if file shrinks under us while we tar it up  
						
						 
						
						
						
						
					 
					
						2006-11-24 14:55:23 +00:00  
					
					
						 
						
						
							
							
							 
							
							
							
							
							 
						
					 
				 
			
				
					
						
							
							
								 
								Denis Vlasenko 
							
						 
					 
					
						
						
							
						
						cf30cc82a3 
					 
					
						
						
							
							header_verbose_list: stop truncating file size in listing  
						
						 
						
						
						
						
					 
					
						2006-11-24 14:53:18 +00:00  
					
					
						 
						
						
							
							
							 
							
							
							
							
							 
						
					 
				 
			
				
					
						
							
							
								 
								Denis Vlasenko 
							
						 
					 
					
						
						
							
						
						376ce1e775 
					 
					
						
						
							
							tar:  
						
						 
						
						... 
						
						
						
						* unpack: handle tar header fields which are not NUL terminated
* pack: handle 4+GB files correctly
* pack: refuse to store 101+ softlinks (was truncating link
  target name)
* pack: mask mode with 07777 
						
						
					 
					
						2006-11-24 14:51:01 +00:00  
					
					
						 
						
						
							
							
							 
							
							
							
							
							 
						
					 
				 
			
				
					
						
							
							
								 
								Denis Vlasenko 
							
						 
					 
					
						
						
							
						
						8c35d65c43 
					 
					
						
						
							
							recursive_action: add depth param  
						
						 
						
						... 
						
						
						
						chmod: match coreutils versus following links 
						
						
					 
					
						2006-10-27 23:42:25 +00:00  
					
					
						 
						
						
							
							
							 
							
							
							
							
							 
						
					 
				 
			
				
					
						
							
							
								 
								Denis Vlasenko 
							
						 
					 
					
						
						
							
						
						e1a0d486e4 
					 
					
						
						
							
							message string changes, mostly for consistency, also -32 bytes in .rodata  
						
						 
						
						
						
						
					 
					
						2006-10-20 13:28:22 +00:00  
					
					
						 
						
						
							
							
							 
							
							
							
							
							 
						
					 
				 
			
				
					
						
							
							
								 
								Denis Vlasenko 
							
						 
					 
					
						
						
							
						
						ea62077b85 
					 
					
						
						
							
							add open_read_close() and similar stuff  
						
						 
						
						
						
						
					 
					
						2006-10-14 02:23:43 +00:00  
					
					
						 
						
						
							
							
							 
							
							
							
							
							 
						
					 
				 
			
				
					
						
							
							
								 
								Denis Vlasenko 
							
						 
					 
					
						
						
							
						
						2d5ca60bfb 
					 
					
						
						
							
							bb_get_[chomped]line_from_file wasn't descriptive enough.  
						
						 
						
						... 
						
						
						
						Renaming... 
						
						
					 
					
						2006-10-12 22:43:20 +00:00  
					
					
						 
						
						
							
							
							 
							
							
							
							
							 
						
					 
				 
			
				
					
						
							
							
								 
								Denis Vlasenko 
							
						 
					 
					
						
						
							
						
						a6dbb08a48 
					 
					
						
						
							
							small style fixes  
						
						 
						
						
						
						
					 
					
						2006-10-12 19:29:44 +00:00  
					
					
						 
						
						
							
							
							 
							
							
							
							
							 
						
					 
				 
			
				
					
						
							
							
								 
								Denis Vlasenko 
							
						 
					 
					
						
						
							
						
						7039a66b58 
					 
					
						
						
							
							correct largefile support, add comments about it.  
						
						 
						
						
						
						
					 
					
						2006-10-08 17:54:47 +00:00  
					
					
						 
						
						
							
							
							 
							
							
							
							
							 
						
					 
				 
			
				
					
						
							
							
								 
								Denis Vlasenko 
							
						 
					 
					
						
						
							
						
						1385899416 
					 
					
						
						
							
							attempt to regularize atoi mess.  
						
						 
						
						
						
						
					 
					
						2006-10-08 12:49:22 +00:00  
					
					
						 
						
						
							
							
							 
							
							
							
							
							 
						
					 
				 
			
				
					
						
							
							
								 
								Denis Vlasenko 
							
						 
					 
					
						
						
							
						
						67b23e6043 
					 
					
						
						
							
							getopt_ulflags -> getopt32.  
						
						 
						
						... 
						
						
						
						It is impossible to formulate sane ABI based on
size of ulong because it can be 32-bit or 64-bit.
Basically it means that you cannot portably use
more that 32 option chars in one call anyway...
Make it explicit. 
						
						
					 
					
						2006-10-03 21:00:06 +00:00  
					
					
						 
						
						
							
							
							 
							
							
							
							
							 
						
					 
				 
			
				
					
						
							
							
								 
								Denis Vlasenko 
							
						 
					 
					
						
						
							
						
						6429aabbf1 
					 
					
						
						
							
							bb_askpass: shorten static password buffer. 256 is way too large.  
						
						 
						
						... 
						
						
						
						simplify code a bit. 
						
						
					 
					
						2006-09-23 12:22:11 +00:00  
					
					
						 
						
						
							
							
							 
							
							
							
							
							 
						
					 
				 
			
				
					
						
							
							
								 
								Rob Landley 
							
						 
					 
					
						
						
							
						
						1bfca7bac7 
					 
					
						
						
							
							Cleanup headers and replace the zero padding with an even smaller version.  
						
						 
						
						... 
						
						
						
						One of the pads turned out to be unnecessary: sizeof(struct TarHeader) is
TAR_BLOCK_SIZE, the padding's in the struct.  The others could be done inline
with bb_common_bufsiz1.
This is a cleanup I did to Denis' patch long ago, but got sidetracked by
what turned into svn 15660. 
						
						
					 
					
						2006-09-10 03:20:37 +00:00  
					
					
						 
						
						
							
							
							 
							
							
							
							
							 
						
					 
				 
			
				
					
						
							
							
								 
								Denis Vlasenko 
							
						 
					 
					
						
						
							
						
						0c45bb23d2 
					 
					
						
						
							
							tar: fix "xopen with O_CREAT" warning, improve zero padding write  
						
						 
						
						... 
						
						
						
						(was doing zillions of 1-byte write syscalls) 
						
						
					 
					
						2006-09-09 12:49:03 +00:00  
					
					
						 
						
						
							
							
							 
							
							
							
							
							 
						
					 
				 
			
				
					
						
							
							
								 
								Denis Vlasenko 
							
						 
					 
					
						
						
							
						
						314908da9e 
					 
					
						
						
							
							tar: revert older fix (non-portable), added new one.  
						
						 
						
						... 
						
						
						
						testsuite tar-extracts-all-subdirs now passes. 
						
						
					 
					
						2006-09-03 14:04:33 +00:00  
					
					
						 
						
						
							
							
							 
							
							
							
							
							 
						
					 
				 
			
				
					
						
							
							
								 
								Rob Landley 
							
						 
					 
					
						
						
							
						
						88621d7398 
					 
					
						
						
							
							Svn 16007 broke the build under gcc 4.0.3.  This fixes up some of the damage  
						
						 
						
						... 
						
						
						
						(the e2fsprogs directory is too twisty and evil to easily fix, but I plan
to rewrite it anyway so I'll just bump that up in priority a bit). 
						
						
					 
					
						2006-08-29 19:41:06 +00:00  
					
					
						 
						
						
							
							
							 
							
							
							
							
							 
						
					 
				 
			
				
					
						
							
							
								 
								Rob Landley 
							
						 
					 
					
						
						
							
						
						86b4d64aa3 
					 
					
						
						
							
							These should have been part of 15767 too.  
						
						 
						
						
						
						
					 
					
						2006-08-03 17:58:17 +00:00  
					
					
						 
						
						
							
							
							 
							
							
							
							
							 
						
					 
				 
			
				
					
						
							
							
								 
								Rob Landley 
							
						 
					 
					
						
						
							
						
						534374755d 
					 
					
						
						
							
							Cleaup read() and write() variants, plus a couple of new functions like  
						
						 
						
						... 
						
						
						
						xlseek and fdlength() for the new mkswap. 
						
						
					 
					
						2006-07-16 08:14:35 +00:00  
					
					
						 
						
						
							
							
							 
							
							
							
							
							 
						
					 
				 
			
				
					
						
							
							
								 
								Rob Landley 
							
						 
					 
					
						
						
							
						
						768945b762 
					 
					
						
						
							
							A few patches from Erik Hovland, turning strncpy() into safe_strncpy() and  
						
						 
						
						... 
						
						
						
						removing some unnecessary code. 
						
						
					 
					
						2006-06-25 00:34:52 +00:00  
					
					
						 
						
						
							
							
							 
							
							
							
							
							 
						
					 
				 
			
				
					
						
							
							
								 
								Rob Landley 
							
						 
					 
					
						
						
							
						
						8bb50782a5 
					 
					
						
						
							
							Change llist_add_* to take the address of the list rather than returning the new  
						
						 
						
						... 
						
						
						
						head, and change all the callers. 
						
						
					 
					
						2006-05-26 23:44:51 +00:00  
					
					
						 
						
						
							
							
							 
							
							
							
							
							 
						
					 
				 
			
				
					
						
							
							
								 
								Bernhard Reutner-Fischer 
							
						 
					 
					
						
						
							
						
						18260d5099 
					 
					
						
						
							
							- typo: s/derefernce/dereference/g  
						
						 
						
						... 
						
						
						
						Thanks to P.J. Day. 
						
						
					 
					
						2006-04-18 14:17:49 +00:00  
					
					
						 
						
						
							
							
							 
							
							
							
							
							 
						
					 
				 
			
				
					
						
							
							
								 
								Bernhard Reutner-Fischer 
							
						 
					 
					
						
						
							
						
						d9cf7ac781 
					 
					
						
						
							
							- patch from Denis Vlasenko to add and use bb_xchdir()  
						
						 
						
						
						
						
					 
					
						2006-04-12 18:39:58 +00:00  
					
					
						 
						
						
							
							
							 
							
							
							
							
							 
						
					 
				 
			
				
					
						
							
							
								 
								Bernhard Reutner-Fischer 
							
						 
					 
					
						
						
							
						
						a1bccc0ba8 
					 
					
						
						
							
							- typos: s/compatability/compatibility/g;s/compatable/compatible/g;  
						
						 
						
						
						
						
					 
					
						2006-04-02 20:17:55 +00:00  
					
					
						 
						
						
							
							
							 
							
							
							
							
							 
						
					 
				 
			
				
					
						
							
							
								 
								Tim Riker 
							
						 
					 
					
						
						
							
						
						c1ef7bdd8d 
					 
					
						
						
							
							just whitespace  
						
						 
						
						
						
						
					 
					
						2006-01-25 00:08:53 +00:00  
					
					
						 
						
						
							
							
							 
							
							
							
							
							 
						
					 
				 
			
				
					
						
							
							
								 
								Rob Landley 
							
						 
					 
					
						
						
							
						
						c1d69906a0 
					 
					
						
						
							
							Patch from Aurelien Jacobs to add unlzma.  (A new decompression type,  
						
						 
						
						... 
						
						
						
						see www.7-zip.org) 
						
						
					 
					
						2006-01-20 18:28:50 +00:00  
					
					
						 
						
						
							
							
							 
							
							
							
							
							 
						
					 
				 
			
				
					
						
							
							
								 
								Rob Landley 
							
						 
					 
					
						
						
							
						
						e569553aa0 
					 
					
						
						
							
							Bug 547: writing out the tar file header before we confirm we can actually  
						
						 
						
						... 
						
						
						
						open and read from the file isn't something we can recover from after the
fact.  Resequence things to check first, write second. 
						
						
					 
					
						2006-01-09 03:07:44 +00:00  
					
					
						 
						
						
							
							
							 
							
							
							
							
							 
						
					 
				 
			
				
					
						
							
							
								 
								Rob Landley 
							
						 
					 
					
						
						
							
						
						1a78103306 
					 
					
						
						
							
							Bug 601: When we fork an archiver and feed stuff to it through a pipe, if  
						
						 
						
						... 
						
						
						
						we don't close the pipe the child process won't exit, and we'll hang in
waitpid(). 
						
						
					 
					
						2005-12-16 21:33:10 +00:00  
					
					
						 
						
						
							
							
							 
							
							
							
							
							 
						
					 
				 
			
				
					
						
							
							
								 
								Bernhard Reutner-Fischer 
							
						 
					 
					
						
						
							
						
						126da9ec2d 
					 
					
						
						
							
							- typo: s/sucess/success/g  
						
						 
						
						... 
						
						
						
						What's up with loginutils/su.c line 42: "SYSLOG_SUCESS" ? Please have a look.. 
						
						
					 
					
						2005-12-12 11:20:39 +00:00  
					
					
						 
						
						
							
							
							 
							
							
							
							
							 
						
					 
				 
			
				
					
						
							
							
								 
								"Vladimir N. Oleynik" 
							
						 
					 
					
						
						
							
						
						a62b0e7459 
					 
					
						
						
							
							reduce 3 warning if compile with -W  
						
						 
						
						
						
						
					 
					
						2005-12-06 12:20:57 +00:00  
					
					
						 
						
						
							
							
							 
							
							
							
							
							 
						
					 
				 
			
				
					
						
							
							
								 
								Rob Landley 
							
						 
					 
					
						
						
							
						
						f3d6c94c7f 
					 
					
						
						
							
							Add --no-same-owner and --no-same-permissions options to tar.  
						
						 
						
						
						
						
					 
					
						2005-10-27 22:49:08 +00:00  
					
					
						 
						
						
							
							
							 
							
							
							
							
							 
						
					 
				 
			
				
					
						
							
							
								 
								Rob Landley 
							
						 
					 
					
						
						
							
						
						a4d45d423f 
					 
					
						
						
							
							The fact "tar tvjf thing.tbz" didn't work was due to the "-1" in -r11859,  
						
						 
						
						... 
						
						
						
						which was apparently never tested.  That meant that there always had
to be at least one unparsed argument left over, which is not the case for
tar. 
						
						
					 
					
						2005-10-16 08:42:18 +00:00  
					
					
						 
						
						
							
							
							 
							
							
							
							
							 
						
					 
				 
			
				
					
						
							
							
								 
								Rob Landley 
							
						 
					 
					
						
						
							
						
						60fe7bfa41 
					 
					
						
						
							
							Whitespace and curly bracket cleanup (our tabstop is 4 in busybox),  
						
						 
						
						... 
						
						
						
						and switch more stuff from CONFIG to ENABLE. 
						
						
					 
					
						2005-10-16 03:54:49 +00:00  
					
					
						 
						
						
							
							
							 
							
							
							
							
							 
						
					 
				 
			
				
					
						
							
							
								 
								"Vladimir N. Oleynik" 
							
						 
					 
					
						
						
							
						
						84e7511607 
					 
					
						
						
							
							llist must initialize, add loses ifdef, small indent correction  
						
						 
						
						
						
						
					 
					
						2005-10-15 06:32:38 +00:00  
					
					
						 
						
						
							
							
							 
							
							
							
							
							 
						
					 
				 
			
				
					
						
							
							
								 
								Rob Landley 
							
						 
					 
					
						
						
							
						
						3ee6c24ea2 
					 
					
						
						
							
							Add --exclude option (to make uClibc-0.9.28 headers install using busybox tar).  
						
						 
						
						... 
						
						
						
						I have no idea how to apply bb_getopt_complementally to a --longopt that
has no short option.  The documentation from vodz has a bad case of
babelfish poisoning, and I can't understand it.  It sort of seems to
suggest there is a way, but what it is I have no idea.  So I used \n as
the short option, which is fairly unlikely to be used for something else. :) 
						
						
					 
					
						2005-10-15 03:06:21 +00:00  
					
					
						 
						
						
							
							
							 
							
							
							
							
							 
						
					 
				 
			
				
					
						
							
							
								 
								"Vladimir N. Oleynik" 
							
						 
					 
					
						
						
							
						
						f704b27b5b 
					 
					
						
						
							
							- new bb_opt_complementally syntax, use [-:?] only - 'free' chars  
						
						 
						
						... 
						
						
						
						- new bb_getopt_ulflags features: check max and min args, convert first argv to options special for ar and tar applets
- use bb_default_error_retval for env applet 
						
						
					 
					
						2005-10-14 09:56:52 +00:00