VirtualBox

Changeset 42735 in vbox for trunk


Ignore:
Timestamp:
Aug 10, 2012 6:31:43 AM (13 years ago)
Author:
vboxsync
svn:sync-xref-src-repo-rev:
79950
Message:

Additions/common/VBoxService: vbox_mktemp tool requires an absolute path.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/VBox/Additions/common/VBoxService/VBoxServiceToolBox.cpp

    r42728 r42735  
    12871287    }
    12881288    pszName = argv[argc - 1];
     1289    /* For now require an absolute path - perhaps later if we support a
     1290     * current directory concept we can change this. */
     1291    if (!RTPathStartsWithRoot(pszName))
     1292    {
     1293        toolboxMkTempReport("Template '%s' should contain an absolute path.\n",
     1294                            pszName, true, VERR_INVALID_PARAMETER,
     1295                            fOutputFlags, &rc);
     1296        return RTEXITCODE_FAILURE;
     1297    }
    12891298    if (RT_SUCCESS(rc) && !strchr(pszName, 'X'))  /* IPRT asserts this. */
    12901299    {
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