[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [xen staging] xen-livepatch: fix --force option comparison
commit be5b08dd6ea6ef0f01caf537bdae125fa66a2230 Author: Roger Pau Monné <roger.pau@xxxxxxxxxx> AuthorDate: Fri Apr 26 12:43:44 2024 +0200 Commit: Jan Beulich <jbeulich@xxxxxxxx> CommitDate: Fri Apr 26 12:43:44 2024 +0200 xen-livepatch: fix --force option comparison The check for --force option shouldn't be against 0. Reported-by: Jan Beulich <jbeulich@xxxxxxxx> Fixes: 62a72092a517 ('livepatch: introduce --force option') Signed-off-by: Roger Pau Monné <roger.pau@xxxxxxxxxx> Acked-by: Anthony PERARD <anthony.perard@xxxxxxxxxx> Reviewed-by: Ross Lagerwall <ross.lagerwall@xxxxxxxxxx> --- tools/misc/xen-livepatch.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tools/misc/xen-livepatch.c b/tools/misc/xen-livepatch.c index c16fb6862d..f406ea1373 100644 --- a/tools/misc/xen-livepatch.c +++ b/tools/misc/xen-livepatch.c @@ -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 ) { -- generated by git-patchbot for /home/xen/git/xen.git#staging
|
Lists.xenproject.org is hosted with RackSpace, monitoring our |