<feed xmlns='http://www.w3.org/2005/Atom'>
<title>squashfs-tools-ng.git/lib/fstree, branch v0.4</title>
<subtitle>A new set of tools and libraries for working with SquashFS images</subtitle>
<id>https://git.infraroot.at/squashfs-tools-ng.git/atom?h=v0.4</id>
<link rel='self' href='https://git.infraroot.at/squashfs-tools-ng.git/atom?h=v0.4'/>
<link rel='alternate' type='text/html' href='https://git.infraroot.at/squashfs-tools-ng.git/'/>
<updated>2019-07-03T16:50:33+00:00</updated>
<entry>
<title>cleanup: move tree node from path function to libfstree.a</title>
<updated>2019-07-03T16:50:33+00:00</updated>
<author>
<name>David Oberhollenzer</name>
<email>david.oberhollenzer@sigma-star.at</email>
</author>
<published>2019-07-03T16:50:33+00:00</published>
<link rel='alternate' type='text/html' href='https://git.infraroot.at/squashfs-tools-ng.git/commit/?id=da7eb3445cab5936455b8a119cb656113ca3d402'/>
<id>urn:sha1:da7eb3445cab5936455b8a119cb656113ca3d402</id>
<content type='text'>
Signed-off-by: David Oberhollenzer &lt;david.oberhollenzer@sigma-star.at&gt;
</content>
</entry>
<entry>
<title>Remove never used overflow error message in fstree_from_file</title>
<updated>2019-07-01T09:46:40+00:00</updated>
<author>
<name>David Oberhollenzer</name>
<email>david.oberhollenzer@sigma-star.at</email>
</author>
<published>2019-07-01T08:38:01+00:00</published>
<link rel='alternate' type='text/html' href='https://git.infraroot.at/squashfs-tools-ng.git/commit/?id=569c430c61d7720919836e1fcbea27f7a0673778'/>
<id>urn:sha1:569c430c61d7720919836e1fcbea27f7a0673778</id>
<content type='text'>
Bug found using scan-build.

Signed-off-by: David Oberhollenzer &lt;david.oberhollenzer@sigma-star.at&gt;
</content>
</entry>
<entry>
<title>Fix uninitialize return status in fstree_relabel_selinux</title>
<updated>2019-07-01T09:46:40+00:00</updated>
<author>
<name>David Oberhollenzer</name>
<email>david.oberhollenzer@sigma-star.at</email>
</author>
<published>2019-07-01T08:38:42+00:00</published>
<link rel='alternate' type='text/html' href='https://git.infraroot.at/squashfs-tools-ng.git/commit/?id=0e210cc91233378db959f75535b8a8c759eb0a30'/>
<id>urn:sha1:0e210cc91233378db959f75535b8a8c759eb0a30</id>
<content type='text'>
Should the inode table theoretically be empty, the function returns an
undefined value. This commit fixes that case by initializing the return
status to 0, so it returns success status in that case.

Bug found using scan-build.

Signed-off-by: David Oberhollenzer &lt;david.oberhollenzer@sigma-star.at&gt;
</content>
</entry>
<entry>
<title>Fix use of uninitialized xattr structure</title>
<updated>2019-07-01T07:20:10+00:00</updated>
<author>
<name>David Oberhollenzer</name>
<email>david.oberhollenzer@sigma-star.at</email>
</author>
<published>2019-07-01T07:20:10+00:00</published>
<link rel='alternate' type='text/html' href='https://git.infraroot.at/squashfs-tools-ng.git/commit/?id=00e4e502a9ff5a60df07e54d344123347da32e80'/>
<id>urn:sha1:00e4e502a9ff5a60df07e54d344123347da32e80</id>
<content type='text'>
The refactor of the xattr table grow code merged all allocation code
paths into realloc(), including the initial allocation. This means that
the xattr structure is used uninitialized. This commit makes sure the
reallocated structure is alwayes cleared.

Bug found using scan-build.

Signed-off-by: David Oberhollenzer &lt;david.oberhollenzer@sigma-star.at&gt;
</content>
</entry>
<entry>
<title>Fix alloca'd memory being freed in fstree_from_dir</title>
<updated>2019-07-01T07:17:54+00:00</updated>
<author>
<name>David Oberhollenzer</name>
<email>david.oberhollenzer@sigma-star.at</email>
</author>
<published>2019-07-01T07:17:54+00:00</published>
<link rel='alternate' type='text/html' href='https://git.infraroot.at/squashfs-tools-ng.git/commit/?id=009aeeea2aecbc35399eb74f7f9178e35fdbd754'/>
<id>urn:sha1:009aeeea2aecbc35399eb74f7f9178e35fdbd754</id>
<content type='text'>
Most code path that use 'extra' allocate it using calloc/malloc/strdup
and then converge into a common path that uses free() on extra.

This commit removes a stray one that uses alloca for symlink targets,
so we don't free() a stack buffer further down in the common path.

Bug found using scan-build.

Signed-off-by: David Oberhollenzer &lt;david.oberhollenzer@sigma-star.at&gt;
</content>
</entry>
<entry>
<title>Split up fstree_add_xattr</title>
<updated>2019-06-23T15:30:18+00:00</updated>
<author>
<name>David Oberhollenzer</name>
<email>david.oberhollenzer@sigma-star.at</email>
</author>
<published>2019-06-23T15:30:18+00:00</published>
<link rel='alternate' type='text/html' href='https://git.infraroot.at/squashfs-tools-ng.git/commit/?id=a94d6f47b0075f88682b97a7528be61980994fcb'/>
<id>urn:sha1:a94d6f47b0075f88682b97a7528be61980994fcb</id>
<content type='text'>
This IMO makes it somewhat easier to read and understand what's going on.

Signed-off-by: David Oberhollenzer &lt;david.oberhollenzer@sigma-star.at&gt;
</content>
</entry>
<entry>
<title>Move fstree default option processing to fstree code</title>
<updated>2019-06-23T00:39:57+00:00</updated>
<author>
<name>David Oberhollenzer</name>
<email>david.oberhollenzer@sigma-star.at</email>
</author>
<published>2019-06-23T00:19:27+00:00</published>
<link rel='alternate' type='text/html' href='https://git.infraroot.at/squashfs-tools-ng.git/commit/?id=73dec828ad61d046d10648ddca5c89ce70352a7a'/>
<id>urn:sha1:73dec828ad61d046d10648ddca5c89ce70352a7a</id>
<content type='text'>
Instead of decomposing a default string in gensquashfs option processing,
move that to fstree_init instead and pass the option string directly to
fstree_init.

Signed-off-by: David Oberhollenzer &lt;david.oberhollenzer@sigma-star.at&gt;
</content>
</entry>
<entry>
<title>fix: always set permissions on symlinks to 0777</title>
<updated>2019-06-22T21:49:59+00:00</updated>
<author>
<name>David Oberhollenzer</name>
<email>david.oberhollenzer@sigma-star.at</email>
</author>
<published>2019-06-22T21:49:39+00:00</published>
<link rel='alternate' type='text/html' href='https://git.infraroot.at/squashfs-tools-ng.git/commit/?id=c9ba7b8ae1064cd64894e98c09863123d81e8e12'/>
<id>urn:sha1:c9ba7b8ae1064cd64894e98c09863123d81e8e12</id>
<content type='text'>
Signed-off-by: David Oberhollenzer &lt;david.oberhollenzer@sigma-star.at&gt;
</content>
</entry>
<entry>
<title>Cleanup: unify packdir/packfile based directory changes in gensquashfs</title>
<updated>2019-06-22T21:18:36+00:00</updated>
<author>
<name>David Oberhollenzer</name>
<email>david.oberhollenzer@sigma-star.at</email>
</author>
<published>2019-06-22T21:18:36+00:00</published>
<link rel='alternate' type='text/html' href='https://git.infraroot.at/squashfs-tools-ng.git/commit/?id=56786917339c1ac2190b8b903eaf79e60d726973'/>
<id>urn:sha1:56786917339c1ac2190b8b903eaf79e60d726973</id>
<content type='text'>
This commit removes the packdir/packfile based directory setup magic
from fstree_from_file and moves it to gensquashfs. Over there, the
common parts are deduplicated.

Signed-off-by: David Oberhollenzer &lt;david.oberhollenzer@sigma-star.at&gt;
</content>
</entry>
<entry>
<title>Cleanup: split fstree sort into 2 fstree independend functions</title>
<updated>2019-06-22T18:04:25+00:00</updated>
<author>
<name>David Oberhollenzer</name>
<email>david.oberhollenzer@sigma-star.at</email>
</author>
<published>2019-06-22T18:02:10+00:00</published>
<link rel='alternate' type='text/html' href='https://git.infraroot.at/squashfs-tools-ng.git/commit/?id=6cbc85c018187a2b28bf0607f52bc258cc273253'/>
<id>urn:sha1:6cbc85c018187a2b28bf0607f52bc258cc273253</id>
<content type='text'>
Make tree node list sort and recursive variant available and independend
of the fstree_t.

This is considered cleaner, since the fstree_t actually isn't needed for
any of this and we can just call the recusvie sort on the root instead,
and we can use the sort implementation directly for things like the
upcoming unit test.

Also this commit splits up the merge/sort implementation into a seperate
split and merge functions to make the code somewhat more readable.

Signed-off-by: David Oberhollenzer &lt;david.oberhollenzer@sigma-star.at&gt;
</content>
</entry>
</feed>
