Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

add .xz support for h2ext to be able to build from tar.xz templates #24

Merged
merged 1 commit into from Sep 9, 2015

Conversation

glensc
Copy link
Contributor

@glensc glensc commented Sep 9, 2015

magic taken from
https://github.com/file/file/blob/FILE5_24/magic/Magdir/compress#L202-L205

however due limited support of magic format in util-vserver had to hack
some things:

  • does not support 'ustring', used 'string'
  • does not support \xXX hex escape, used octal
  • unable parse octal properly \375 + 7 would be parsed as \3757, so encoded '7' as \67

$ head -c6 < pld32.tar.xz|od -cx
0000000 375 7 z X Z \0
37fd 587a 005a

magic taken from
https://github.com/file/file/blob/FILE5_24/magic/Magdir/compress#L202-L205

however due limited support of magic format in util-vserver had to hack
some things:

- does not support 'ustring', used 'string'
- does not support \xXX hex escape, used octal
- unable parse octal properly \375 + 7 would be parsed as \3757, so encoded '7' as \67

$ head -c6 < pld32.tar.xz|od -cx
0000000 375   7   z   X   Z  \0
           37fd    587a    005a
glensc added a commit to pld-linux/util-vserver that referenced this pull request Sep 9, 2015
dhozac added a commit that referenced this pull request Sep 9, 2015
add .xz support for h2ext to be able to build from tar.xz templates
@dhozac dhozac merged commit 3617c0a into linux-vserver:master Sep 9, 2015
@glensc glensc deleted the h2ext-xz branch September 11, 2015 19:37
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants