VirtualBox

Changeset 23954 in vbox


Ignore:
Timestamp:
Oct 21, 2009 9:00:12 PM (15 years ago)
Author:
vboxsync
svn:sync-xref-src-repo-rev:
53773
Message:

FE/Qt4: 4357: check /proc/mounts not /etc/fstab

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/VBox/Frontends/VirtualBox/src/VBoxProblemReporter.cpp

    r23948 r23954  
    344344void VBoxProblemReporter::checkForMountedWrongUSB() const
    345345{
    346     QFile file ("/etc/fstab");
     346    QFile file ("/proc/mounts");
    347347    if (file.exists() && file.open (QIODevice::ReadOnly | QIODevice::Text))
    348348    {
    349349        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        }
    352357        QStringList grep1 (contents.filter ("/sys/bus/usb/drivers"));
    353358        QStringList grep2 (grep1.filter ("usbfs"));
    354359        if (!grep2.isEmpty())
    355360            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. "
    357362                         "We strongly recommend that you change this, as it is a severe mis-configuration of "
    358363                         "your system which could cause USB devices to fail in unexpected ways."),
Note: See TracChangeset for help on using the changeset viewer.

© 2024 Oracle Support Privacy / Do Not Sell My Info Terms of Use Trademark Policy Automated Access Etiquette