Closed Yusong-Gao closed 2 years ago
Reference: https://github.com/lcp/mokutil/commit/d02bf6392d1ea6ae0f8540b98cdc60af06892a11
This commit remove "--simple-hash" but not remove "-s" option in getopt_long(), so when i use command begin with "-s" like "mokutil -state" the unexpected abort happen.
@lcp @frozencemetery
Code looks fine.
(Typos in commit message: "unused", "unexpected")
ok, i fix it
Good catch. Thanks for the patch.
oops. Just found "unexpected" in the commit message wasn't fixed. Anyway, what's done is done.
The -s option can cause unexcepted result.
Signed-off-by: gaoyusong gaoyusong2@huawei.com