Closed josch closed 4 years ago
The problem is two fold:
tar2sqfs
sanitizes the path names, i.e. it turns ./bar
into bar
but turns ./
into an empty string.sqfs2tar
fails.My proposed solution for this is as follows:
tar2sqfs
that skips entries if the sanitized name is empty string
./
./
for the root node? Perhaps a more generic handle "cut off prefix X and turn X into the root node"?sqfs_dir_writer_add_entry
to throw an error if an empty string as supplied as an entry name.Which is implemented by commits 018e0e0a8e3c36a6bedf60eedeb8262311d90869 and 063f57dec14986d1895d83d9113fd1dec7f135f4.
Steps to reproduce: