Bug 81598 [Import/Export] Output tar files are too short
When outputting a small .tar file, I noticed that it was not correctly padded to 10240 bytes. The fix is to make sure we correctly close the output stream. This bug may have been exposed by the fix for 81277.
bundles/org.eclipse.ui.ide/src/org/eclipse/ui/internal/wizards/datatransfer/TarOutputStream.java
String filename = e.getName();
		String prefix = null;
		int pos, i;
		
		
		if(filename.length() > 99 ) {
			int seppos = filename.lastIndexOf('/');
			if(seppos == -1) throw new IOException("filename too long"); 
			prefix = filename.substring(0, seppos);
			filename = filename.substring(seppos + 1);
			if(filename.length() > 99) throw new IOException("filename too long"); 
		}
		
		
		pos = 0;
		for(i = 0; i < filename.length(); i++) {
			header[pos + i] = (byte) filename.charAt(i);
		}
		pos += 100;
		
		
		StringBuffer mode = new StringBuffer(Long.toOctalString(e.getMode()));
		while(mode.length() < 7) mode.insert(0,'0');
		for(i = 0; i < 7; i++) {
			header[pos + i] = (byte) mode.charAt(i);
		}
		pos += 8;
		
		
		header[pos] = '0';