VirtualBox

Changeset 100561 in vbox


Ignore:
Timestamp:
Jul 13, 2023 9:58:36 AM (20 months ago)
Author:
vboxsync
svn:sync-xref-src-repo-rev:
158387
Message:

Runtime: Reorder some (at this point unused) code, bugref:10261

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/VBox/Runtime/r3/posix/fileio-posix.cpp

    r98103 r100561  
    352352    }
    353353
     354    /*
     355     * If temporary file, delete it.
     356     */
     357    if (   fh >= 0
     358        && (fOpen & RTFILE_O_TEMP_AUTO_DELETE))
     359    {
     360        /** @todo Use funlinkat/funlink or similar here when available!  Or better,
     361         *        use O_TMPFILE, only that may require fallback as not supported by
     362         *        all file system on linux. */
     363        iErr = unlink(pszNativeFilename);
     364        Assert(iErr == 0);
     365    }
     366
    354367    rtPathFreeNative(pszNativeFilename, pszFilename);
    355368    if (fh >= 0)
    356369    {
    357370        iErr = 0;
    358 
    359         /*
    360          * If temporary file, delete it.
    361          */
    362         if (fOpen & RTFILE_O_TEMP_AUTO_DELETE)
    363         {
    364             /** @todo Use funlinkat/funlink or similar here when available!  Or better,
    365              *        use O_TMPFILE, only that may require fallback as not supported by
    366              *        all file system on linux. */
    367             iErr = unlink(pszNativeFilename);
    368             Assert(iErr == 0);
    369         }
    370371
    371372        /*
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