VirtualBox

Changeset 49039 in vbox for trunk/src/VBox/Installer


Ignore:
Timestamp:
Oct 10, 2013 6:27:32 PM (12 years ago)
Author:
vboxsync
svn:sync-xref-src-repo-rev:
89816
Message:

IPRT: Filename extension versus suffix cleanup, long overdue.

Location:
trunk/src/VBox/Installer
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/VBox/Installer/linux/install_service/generate_service_file.cpp

    r44529 r49039  
    585585            else
    586586            {
    587                 const char *pcszFileName =
    588                     RTPathFilename(pParameters->pcszCommand);
    589                 const char *pcszExtension =
    590                     RTPathExt(pParameters->pcszCommand);
     587                const char *pcszFileName = RTPathFilename(pParameters->pcszCommand);
     588                const char *pcszSuffix   = RTPathSuffix(pParameters->pcszCommand);
    591589                char *pszName = RTStrDupN(pcszFileName,
    592                                             pcszExtension
    593                                           ? pcszExtension - pcszFileName
     590                                            pcszSuffix
     591                                          ? pcszSuffix - pcszFileName
    594592                                          : RTPATH_MAX);
    595593                bool fRc;
  • trunk/src/VBox/Installer/win/Stub/VBoxStub.cpp

    r45332 r49039  
    626626
    627627    RTEXITCODE rcExit;
    628     const char *pszExt = RTPathExt(szPkgFile);
    629     if (RTStrICmp(pszExt, ".msi") == 0)
     628    const char *pszSuff = RTPathSuffix(szPkgFile);
     629    if (RTStrICmp(pszSuff, ".msi") == 0)
    630630        rcExit = ProcessMsiPackage(szPkgFile, pszMsiArgs, fLogging);
    631     else if (RTStrICmp(pszExt, ".cab") == 0)
     631    else if (RTStrICmp(pszSuff, ".cab") == 0)
    632632        rcExit = RTEXITCODE_SUCCESS; /* Ignore .cab files, they're generally referenced by other files. */
    633633    else
Note: See TracChangeset for help on using the changeset viewer.

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