xen-livepatch: fix --force option comparison

The check for --force option shouldn't be against 0.

Reported-by: Jan Beulich <jbeulich@suse.com>
Fixes: 62a72092a5 ('livepatch: introduce --force option')
Signed-off-by: Roger Pau Monné <roger.pau@citrix.com>
Acked-by: Anthony PERARD <anthony.perard@citrix.com>
Reviewed-by: Ross Lagerwall <ross.lagerwall@citrix.com>
This commit is contained in:
Roger Pau Monné authored and Jan Beulich committed 2024-04-26 12:43:44 +02:00
1 parent 13893a58e2
commit be5b08dd6e
1 file changed
+1 -1
+1 -1
View File
@@ -576,7 +576,7 @@ int main(int argc, char *argv[])
return 0;
}
if ( strcmp("--force", argv[1]) )
if ( !strcmp("--force", argv[1]) )
{
if ( argc <= 2 )
{
Reference in new issue
Block a user
Blocking a user prevents them from interacting with repositories, such as opening or commenting on pull requests or issues. Learn more about blocking a user.