]> git.apps.os.sepia.ceph.com Git - xfsprogs-dev.git/commit
xfs_repair: catch strtol() errors
authorAndrey Albershteyn <aalbersh@redhat.com>
Wed, 17 Apr 2024 16:19:31 +0000 (18:19 +0200)
committerCarlos Maiolino <cem@kernel.org>
Tue, 23 Apr 2024 13:07:05 +0000 (15:07 +0200)
commitd03b73d240dc7f5b4c02700c79c2c4eeeb94b08b
treef991ed43918aa95c51eb25db06ac1d31d1e5dd86
parenta21daa3a739194b929de644779c359949390d467
xfs_repair: catch strtol() errors

strtol() sets errno if string parsing. Abort and tell user which
parameter is wrong.

Signed-off-by: Andrey Albershteyn <aalbersh@redhat.com>
Reviewed-by: Darrick J. Wong <djwong@kernel.org>
Reviewed-by: Christoph Hellwig <hch@lst.de>
repair/xfs_repair.c