]> www.infradead.org Git - mtd-utils.git/commit
mkfs.ubifs: fix regression when trying to store device special files
authorDavid Oberhollenzer <david.oberhollenzer@sigma-star.at>
Wed, 3 Apr 2019 10:54:16 +0000 (12:54 +0200)
committerDavid Oberhollenzer <david.oberhollenzer@sigma-star.at>
Wed, 3 Apr 2019 13:31:39 +0000 (15:31 +0200)
commit2a26da4468197884d1381bffafe9161453863505
tree1bba1024b58c296076ffaa2af8b389d897732dd0
parentb5027be5f470830ac9543db3c52e076b13abd313
mkfs.ubifs: fix regression when trying to store device special files

Commit a767dd30 added a check to add_inode that bails when trying to
store extra data in anything other than a symlink. The symlink
encryption support added by that commit relies on the assumption.

Unfortionately it was overlooked that device special files also store
the device number as additional data in the inode. The check added in
commit a767dd30 broke support for device files in mkfs.ubifs.

This commit adds a quick and dirty fix, moving the check into the
fscrypt branch, breaking only the fscrypt version but restoring old
functionality for unencrypted file systems.

Signed-off-by: David Oberhollenzer <david.oberhollenzer@sigma-star.at>
ubifs-utils/mkfs.ubifs/mkfs.ubifs.c