VirtualBox

Changeset 67210 in vbox for trunk/src


Ignore:
Timestamp:
Jun 1, 2017 1:57:04 PM (8 years ago)
Author:
vboxsync
Message:

Main: Appliance: filename fixes

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/VBox/Main/src-server/ApplianceImplExport.cpp

    r67209 r67210  
    22842284                /** @todo test this stuff   */
    22852285                const char *pszExt = RTPathSuffix(pDiskEntry->strOvf.c_str());
    2286                 pszExt = !pszExt || *pszExt == '.' ? "" : pszExt + 1;
     2286                pszExt = !pszExt || *pszExt != '.' ? "" : pszExt + 1;
    22872287
    22882288                strTarballPath.stripFilename().append(RTPATH_SLASH_STR).append(pDiskEntry->strOvf);
    2289                 strTarballPath.stripSuffix().append("_").append(pszExt).append(".tar.gz");
    2290 
     2289                if (*pszExt)
     2290                    strTarballPath.stripSuffix().append("_").append(pszExt);
     2291                strTarballPath.append(".tar.gz");
    22912292            }
    22922293            cTarballs++;
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