]> git.ipfire.org Git - thirdparty/xfsprogs-dev.git/commit
xfs_quota: fix unsigned int id comparisons xfsprogs-5.7-fixes_2020-06-25
authorDarrick J. Wong <darrick.wong@oracle.com>
Wed, 27 May 2020 17:21:27 +0000 (10:21 -0700)
committerDarrick J. Wong <darrick.wong@oracle.com>
Thu, 25 Jun 2020 20:47:49 +0000 (13:47 -0700)
commit0adb856d3d531a21e1128c9cea15be6d113c26d6
tree9f394a23d384d335d268b9acf67618c9d60cb764
parent42512f1d28e877781b56607bc3d0c60b6474ab24
xfs_quota: fix unsigned int id comparisons

Fix compiler warnings about unsigned int comparisons by replacing them
with an explicit check for the one possible invalid value (-1U).
id_from_string sets exitcode to nonzero when it sees this value, so the
call sites don't have to do that.

Coverity-id: 146385514638561463857
Fixes: 67a73d6139d0 ("xfs_quota: refactor code to generate id from name")
Fixes: 36dc471cc9bb ("xfs_quota: allow individual timer extension")
Signed-off-by: Darrick J. Wong <darrick.wong@oracle.com>
Reviewed-by: Eric Sandeen <sandeen@redhat.com>
quota/edit.c