Fix libhandle from possibly returning an invalid handle length.
#
PKG_MAJOR=2
PKG_MINOR=6
-PKG_REVISION=17
+PKG_REVISION=18
PKG_BUILD=1
+xfsprogs-2.6.18 (23 June 2004)
+ - Fix libhandle from possibly returning an invalid
+ handle length on systems where size_t is 64 bits.
+
xfsprogs-2.6.17 (23 June 2004)
- Fix use of isset macro, getting realtime devices to
function correctly in xfs_db and xfs_repair.
hreq.ohandle = hbuf;
hreq.ohandlen = (__u32 *)hlen;
+ /* the xfsctl call will only modify the low 32 bits of *hlen,
+ * but *hlen (size_t) could be a 64 bit value on some systems.
+ * zero it out beforehand in case any upper bits are set. */
+ *hlen = 0;
+
ret = xfsctl(fspath, fsfd, opcode, &hreq);
if (ret)
return ret;