Whamcloud - gitweb
LU-17000 utils: In mydaemon() check after calling open() 58/53758/2
authorArshad Hussain <arshad.hussain@aeoncomputing.com>
Mon, 22 Jan 2024 10:33:02 +0000 (16:03 +0530)
committerOleg Drokin <green@whamcloud.com>
Sun, 4 Feb 2024 08:33:01 +0000 (08:33 +0000)
commit0f67ab9b00c3949f257cd4e6081184858f245b4e
treec1637f36f3e4c394f8b4d12fe929494d6cb9eef3
parent04d95ff28d1ddca79c204ceff7cd5d6ddfe83c34
LU-17000 utils: In mydaemon() check after calling open()

This patch adds check after calling open() in function
mydaemon() instead of directly using the value

Test-Parameters: trivial kerberos=true testlist=sanity-krb5
CoverityID: 397666 ("Argument cannot be negative")
Fixes: d2d56f38da0 ("make HEAD from b_post_cmd3")
Signed-off-by: Arshad Hussain <arshad.hussain@aeoncomputing.com>
Change-Id: Ic59414977029221e8618c5bb3320e95d39d9cded
Reviewed-on: https://review.whamcloud.com/c/fs/lustre-release/+/53758
Tested-by: jenkins <devops@whamcloud.com>
Tested-by: Maloo <maloo@whamcloud.com>
Reviewed-by: Sebastien Buisson <sbuisson@ddn.com>
Reviewed-by: Andreas Dilger <adilger@whamcloud.com>
Reviewed-by: Timothy Day <timday@amazon.com>
Reviewed-by: Oleg Drokin <green@whamcloud.com>
lustre/utils/gss/svcgssd.c