Skip to content

Commit

Permalink
Fix usermode daemon version check
Browse files Browse the repository at this point in the history
  • Loading branch information
kschwarz-intrepidcs committed Sep 1, 2022
1 parent e455a88 commit 198cc74
Showing 1 changed file with 1 addition and 7 deletions.
8 changes: 1 addition & 7 deletions intrepid.c
Original file line number Diff line number Diff line change
Expand Up @@ -976,13 +976,7 @@ static long intrepid_dev_ioctl(struct file *fp, unsigned int cmd, unsigned long
ret = KO_VERSION_INT;
break;
case SIOCGCLIENTVEROK:
/* Here we can do checks to see if the usermode daemon is
* a compatible version with us. We don't enforce anything
* on the kernel side. icsscand v2.0.0 will not work with
* older kernels, and would display an obscure error, thus
* we want to ask the user to update to v2.0.1 or later
*/
if (VER_MAJ_FROM_INT(arg) == 3 && (VER_MIN_FROM_INT(arg) > 0 || VER_PATCH_FROM_INT(arg) >= 1))
if (VER_MAJ_FROM_INT(arg) == 3 && VER_MIN_FROM_INT(arg) == 0 && VER_PATCH_FROM_INT(arg) >= 0)
ret = 0; /* ok to start */
else
ret = 1;
Expand Down

0 comments on commit 198cc74

Please sign in to comment.