Whamcloud - gitweb
LU-17000 utils: In mydaemon() check after calling open()
authorArshad Hussain <arshad.hussain@aeoncomputing.com>
Mon, 22 Jan 2024 10:33:02 +0000 (16:03 +0530)
committerAndreas Dilger <adilger@whamcloud.com>
Thu, 8 Feb 2024 08:54:15 +0000 (08:54 +0000)
commit28716d4023334bbcdb7925784be52588ce57039e
tree24c266ba286cf878f6824009b58c9f6265e5272a
parent7af7961f8d7eace42d6d24570c1222b4eb9335b2
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

Lustre-change: https://review.whamcloud.com/53758
Lustre-commit: 0f67ab9b00c3949f257cd4e6081184858f245b4e

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-by: Andreas Dilger <adilger@whamcloud.com>
Reviewed-on: https://review.whamcloud.com/c/ex/lustre-release/+/53911
Reviewed-by: Sebastien Buisson <sbuisson@ddn.com>
Tested-by: jenkins <devops@whamcloud.com>
Tested-by: Maloo <maloo@whamcloud.com>
lustre/utils/gss/svcgssd.c