]> git.ipfire.org Git - thirdparty/xfsprogs-dev.git/commit
xfs_repair: fix incorrect return value in namecheck()
authorEric Sandeen <sandeen@redhat.com>
Fri, 1 Feb 2019 17:54:15 +0000 (11:54 -0600)
committerEric Sandeen <sandeen@redhat.com>
Fri, 1 Feb 2019 17:54:15 +0000 (11:54 -0600)
commit2cd8d66522b1ba9dc21f47e3588d4ab037be37c7
tree4ee8ca85d109beffc18b21ac1b2a70913de771bd
parent193bc423b00eca60ae19f06d7c83ec51e932c43b
xfs_repair: fix incorrect return value in namecheck()

Obviously a directory entry with a '/' in the name should return
1, i.e. failure.  This was just a dumb thinko.

Fixes: 45571fd5885d ("xfs_repair: allow '/' in attribute names")
Reported-by: Darrick J. Wong <darrick.wong@oracle.com>
Signed-off-by: Eric Sandeen <sandeen@redhat.com>
Reviewed-by: Darrick J. Wong <darrick.wong@oracle.com>
Reviewed-by: Bill O'Donnell <billodo@redhat.com>
Signed-off-by: Eric Sandeen <sandeen@sandeen.net>
repair/da_util.c