Changeset 23954 in vbox
- Timestamp:
- Oct 21, 2009 9:00:12 PM (15 years ago)
- svn:sync-xref-src-repo-rev:
- 53773
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/VBox/Frontends/VirtualBox/src/VBoxProblemReporter.cpp
r23948 r23954 344 344 void VBoxProblemReporter::checkForMountedWrongUSB() const 345 345 { 346 QFile file ("/ etc/fstab");346 QFile file ("/proc/mounts"); 347 347 if (file.exists() && file.open (QIODevice::ReadOnly | QIODevice::Text)) 348 348 { 349 349 QStringList contents; 350 while (!file.atEnd()) 351 contents << file.readLine(); 350 for (;;) 351 { 352 QByteArray line = file.readLine(); 353 if (line.isEmpty()) 354 break; 355 contents << line; 356 } 352 357 QStringList grep1 (contents.filter ("/sys/bus/usb/drivers")); 353 358 QStringList grep2 (grep1.filter ("usbfs")); 354 359 if (!grep2.isEmpty()) 355 360 message (mainWindowShown(), Warning, 356 tr ("You seem to have the USBFS filesystem mounted at /sys/bus/usb/drivers in /etc/fstab. "361 tr ("You seem to have the USBFS filesystem mounted at /sys/bus/usb/drivers. " 357 362 "We strongly recommend that you change this, as it is a severe mis-configuration of " 358 363 "your system which could cause USB devices to fail in unexpected ways."),
Note:
See TracChangeset
for help on using the changeset viewer.