VirtualBox

Opened 15 years ago

Closed 15 years ago

#4262 closed defect (fixed)

VBoxManage return code 0 on usbfilter command error => fixed in SVN

Reported by: Michele Petrazzo Owned by:
Component: VM control Version: VirtualBox 2.2.4
Keywords: VBoxManage usbfilter return code Cc:
Guest type: other Host type: Linux

Description

Hi, VBoxManage not return as expected 1 on error when I pass wrong a value, as always.

Here is an Example:

srv2-test:~# /usr/bin/VBoxManage usbfilter add 0 --target fv --name 'MP160 Canon C24F4F' --action hold --active yes --vendorid '0x04a9 (04A9)' --productid '0x1714 (1714)' --revision '1.6 (0106)' --manufacturer Canon --product MP160 --serialnumber C24F4F

VirtualBox Command Line Management Interface Version 2.2.4 (C) 2005-2009 Sun Microsystems, Inc. All rights reserved.

ERROR: The Vendor ID filter expression '0x04a9 (04A9)' is not valid Details: code NS_ERROR_INVALID_ARG (0x80070057), component USBDeviceFilter, interface IUSBDeviceFilter, callee nsISupports Context: "COMSETTER(VendorId) (f.mVendorId.setNullIfEmpty())" at line 465 of file VBoxManageUSB.cpp

srv2-test:~# echo $?

0

Change History (2)

comment:1 by Frank Mehnert, 15 years ago

Summary: VBoxManage return code 0 on usbfilter command errorVBoxManage return code 0 on usbfilter command error => fixed in SVN

Thanks for the report, fixed in SVN.

comment:2 by Frank Mehnert, 15 years ago

Resolution: fixed
Status: newclosed
Note: See TracTickets for help on using tickets.

© 2023 Oracle
ContactPrivacy policyTerms of Use