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

wrong filename if tarball entry is exactly 100 characters long #25

Closed
josch opened this issue Jun 25, 2020 · 1 comment
Closed

wrong filename if tarball entry is exactly 100 characters long #25

josch opened this issue Jun 25, 2020 · 1 comment
Labels

Comments

@josch
Copy link
Contributor

josch commented Jun 25, 2020

steps to reproduce:

$ mkdir test
$ touch test/0123456789abcdef0123456789abcdef0123456789abcdef0123456789abcdef0123456789abcdef0123456789abcdef01
$ tar -C test -cf test.tar .
$ ./genext2fs -B 1024 -N 17 -b 200 -a - -f -o Linux test.img < test.tar
$ sudo mount test.img /mnt
$ ls -lha /mnt
drwxr-xr-x  3 root  root  1.0K Jan  1  1970 .
drwxr-xr-x 25 root  root  4.0K Jun 12 16:28 ..
-rw-r--r--  1 josch josch    0 Jun 25 13:57 0123456789abcdef0123456789abcdef0123456789abcdef0123456789abcdef0123456789abcdef0123456789abcdef010000644
drwx------  2 root  root   16K Jan  1  1970 lost+found

As you can see, the filename has "0000644" appended at the end.

@bestouff
Copy link
Owner

Closed by #24

@bestouff bestouff added the bug label Jun 25, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants