~ubuntu-branches/ubuntu/precise/virtualbox/precise-updates

« back to all changes in this revision

Viewing changes to src/VBox/HostDrivers/Support/linux/SUPLib-linux.cpp

  • Committer: Bazaar Package Importer
  • Author(s): Felix Geyer
  • Date: 2011-07-04 13:02:31 UTC
  • mfrom: (3.1.1 sid)
  • Revision ID: james.westby@ubuntu.com-20110704130231-l843es6wqhx614n7
Tags: 4.0.10-dfsg-1ubuntu1
* Merge from Debian unstable, remaining changes:
  - Add Apport hook.
    - debian/virtualbox-ose.files/source_virtualbox-ose.py
    - debian/virtualbox-ose.install
  - Drop *-source packages.
* Add the Modaliases control field manually for maximum backportability.

Show diffs side-by-side

added added

removed removed

Lines of Context:
266
266
 
267
267
        rc = RTStrToUInt32Ex(szBuf, &pszNext, 10, &uA);
268
268
        if (   RT_SUCCESS(rc)
269
 
                && *pszNext == '.')
 
269
            && *pszNext == '.')
270
270
        {
 
271
            /*
 
272
             * new version number scheme starting with Linux 3.0
 
273
             */
 
274
            if (uA >= 3)
 
275
                return VINF_SUCCESS;
271
276
            rc = RTStrToUInt32Ex(pszNext+1, &pszNext, 10, &uB);
272
277
            if (   RT_SUCCESS(rc)
273
 
                    && *pszNext == '.')
 
278
                && *pszNext == '.')
274
279
            {
275
280
                rc = RTStrToUInt32Ex(pszNext+1, &pszNext, 10, &uC);
276
281
                if (RT_SUCCESS(rc))