VirtualBox

Ticket #4262 (closed defect: fixed)

Opened 5 years ago

Last modified 5 years ago

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

Reported by: michele_petrazzo Owned by:
Priority: minor 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

comment:1 Changed 5 years ago by frank

  • Summary changed from VBoxManage return code 0 on usbfilter command error to VBoxManage return code 0 on usbfilter command error => fixed in SVN

Thanks for the report, fixed in SVN.

comment:2 Changed 5 years ago by frank

  • Status changed from new to closed
  • Resolution set to fixed
Note: See TracTickets for help on using tickets.

www.oracle.com
ContactPrivacy policyTerms of Use