Przeglądaj źródła

Ignore tar.TypeXGlobalHeader

Docker-DCO-1.1-Signed-off-by: Abel Muiño <amuino@gmail.com> (github: amuino)
Abel Muiño 11 lat temu
rodzic
commit
ce74c8b4d2
1 zmienionych plików z 4 dodań i 0 usunięć
  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
 		}
 
+	case tar.TypeXGlobalHeader:
+		utils.Debugf("PAX Global Extended Headers found and ignored")
+		return nil
+
 	default:
 		return fmt.Errorf("Unhandled tar header type %d\n", hdr.Typeflag)
 	}