]> git.ipfire.org Git - thirdparty/xfsprogs-dev.git/commit
xfs_protofile: fix mode formatting error
authorDarrick J. Wong <djwong@kernel.org>
Mon, 3 Feb 2025 22:40:39 +0000 (14:40 -0800)
committerAndrey Albershteyn <aalbersh@kernel.org>
Wed, 5 Feb 2025 17:20:02 +0000 (18:20 +0100)
commita9d781ec5505b9b96641f6130f043e45b7573307
tree3148c3aea2cb1c95f9c5702a6d4ee67bd32a3287
parenta62ea4ad9cacac5fa82c0df45b3f7248cf255d9c
xfs_protofile: fix mode formatting error

The protofile parser expects the mode to be specified with three octal
digits.  Unfortunately, the generator doesn't get that right if the mode
doesn't have any of bits 8-11 (aka no owner access privileges) set.

Fixes: 6aace700b7b82d ("mkfs: add a utility to generate protofiles")
Signed-off-by: Darrick J. Wong <djwong@kernel.org>
Reviewed-by: Christoph Hellwig <hch@lst.de>
mkfs/xfs_protofile.in