-
Notifications
You must be signed in to change notification settings - Fork 74
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
usbfilter ignore --product flag #4
Comments
diff --git a/src/VBox/Frontends/VBoxManage/VBoxManageUSB.cpp b/src/VBox/Frontends/VBoxManage/VBoxManageUSB.cpp
index cffa6aa5..92dda786 100644
--- a/src/VBox/Frontends/VBoxManage/VBoxManageUSB.cpp
+++ b/src/VBox/Frontends/VBoxManage/VBoxManageUSB.cpp
@@ -422,6 +422,8 @@ RTEXITCODE handleUSBFilter(HandlerArg *a)
CHECK_ERROR_BREAK(flt, COMSETTER(Revision)(f.mRevision.raw()));
if (!f.mManufacturer.isEmpty())
CHECK_ERROR_BREAK(flt, COMSETTER(Manufacturer)(f.mManufacturer.raw()));
+ if (!f.mProduct.isEmpty())
+ CHECK_ERROR_BREAK(flt, COMSETTER(Product)(f.mProduct.raw()));
if (!f.mSerialNumber.isEmpty())
CHECK_ERROR_BREAK(flt, COMSETTER(SerialNumber)(f.mSerialNumber.raw()));
if (!f.mMaskedInterfaces.isNull())
@@ -448,6 +450,8 @@ RTEXITCODE handleUSBFilter(HandlerArg *a)
CHECK_ERROR_BREAK(flt, COMSETTER(Revision)(f.mRevision.raw()));
if (!f.mManufacturer.isEmpty())
CHECK_ERROR_BREAK(flt, COMSETTER(Manufacturer)(f.mManufacturer.raw()));
+ if (!f.mProduct.isEmpty())
+ CHECK_ERROR_BREAK(flt, COMSETTER(Product)(f.mProduct.raw()));
if (!f.mRemote.isEmpty())
CHECK_ERROR_BREAK(flt, COMSETTER(Remote)(f.mRemote.raw()));
if (!f.mSerialNumber.isEmpty())
@@ -480,6 +484,8 @@ RTEXITCODE handleUSBFilter(HandlerArg *a)
CHECK_ERROR_BREAK(flt, COMSETTER(Revision)(f.mRevision.raw()));
if (!f.mManufacturer.isEmpty())
CHECK_ERROR_BREAK(flt, COMSETTER(Manufacturer)(f.mManufacturer.raw()));
+ if (!f.mProduct.isEmpty())
+ CHECK_ERROR_BREAK(flt, COMSETTER(Product)(f.mProduct.raw()));
if (!f.mSerialNumber.isEmpty())
CHECK_ERROR_BREAK(flt, COMSETTER(SerialNumber)(f.mSerialNumber.raw()));
if (!f.mMaskedInterfaces.isNull())
@@ -507,6 +513,8 @@ RTEXITCODE handleUSBFilter(HandlerArg *a)
CHECK_ERROR_BREAK(flt, COMSETTER(Revision)(f.mRevision.raw()));
if (!f.mManufacturer.isEmpty())
CHECK_ERROR_BREAK(flt, COMSETTER(Manufacturer)(f.mManufacturer.raw()));
+ if (!f.mProduct.isEmpty())
+ CHECK_ERROR_BREAK(flt, COMSETTER(Product)(f.mProduct.raw()));
if (!f.mRemote.isEmpty())
CHECK_ERROR_BREAK(flt, COMSETTER(Remote)(f.mRemote.raw()));
if (!f.mSerialNumber.isEmpty())
|
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Hi!
I noticed that when I create filter using
usbfilter
command the--product
flag is ignored.For example, this command:
creates this filter:
I thik that the cause of this because you are forgot to set product field here.
vbox/src/VBox/Frontends/VBoxManage/VBoxManageUSB.cpp
Lines 404 to 516 in b9657cd
The text was updated successfully, but these errors were encountered: