Browse Source

Ignore tar.TypeXGlobalHeader

Docker-DCO-1.1-Signed-off-by: Abel Muiño <amuino@gmail.com> (github: amuino)
Abel Muiño 11 years ago
parent
commit
ce74c8b4d2
1 changed files with 4 additions and 0 deletions
  1. 4 0
      archive/archive.go

+ 4 - 0
archive/archive.go

@@ -228,6 +228,10 @@ func createTarFile(path, extractDir string, hdr *tar.Header, reader *tar.Reader)
 			return err
 			return err
 		}
 		}
 
 
+	case tar.TypeXGlobalHeader:
+		utils.Debugf("PAX Global Extended Headers found and ignored")
+		return nil
+
 	default:
 	default:
 		return fmt.Errorf("Unhandled tar header type %d\n", hdr.Typeflag)
 		return fmt.Errorf("Unhandled tar header type %d\n", hdr.Typeflag)
 	}
 	}