Exclude Yubico devices on Linux
All checks were successful
moparisthebest/rusty-keys/pipeline/head This commit looks good
All checks were successful
moparisthebest/rusty-keys/pipeline/head This commit looks good
This commit is contained in:
parent
552cd50266
commit
e6f4653570
@ -83,7 +83,8 @@ impl InputDevice {
|
|||||||
unsafe {
|
unsafe {
|
||||||
eviocgname(raw_fd, &mut name)?
|
eviocgname(raw_fd, &mut name)?
|
||||||
};
|
};
|
||||||
if NAME.as_bytes() == &name {
|
// exclude anything starting with "Yubico" also
|
||||||
|
if NAME.as_bytes() == &name || "Yubico".as_bytes() == &name[0..6] {
|
||||||
return Err(Error::NotAKeyboard);
|
return Err(Error::NotAKeyboard);
|
||||||
}
|
}
|
||||||
return Ok(self);
|
return Ok(self);
|
||||||
|
Loading…
Reference in New Issue
Block a user