VirtualBox

Changeset 94286 in vbox


Ignore:
Timestamp:
Mar 17, 2022 11:22:48 AM (3 years ago)
Author:
vboxsync
Message:

IPRT/Win: Prefer LOCALAPPDATA over TMP / TEMP for RTPathTemp(). bugref:10201

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/VBox/Runtime/r3/RTPathTemp.cpp

    r93115 r94286  
    4848        "IPRT_TMPDIR"
    4949#if defined(RT_OS_WINDOWS)
    50         , "TMP", "TEMP", "USERPROFILE"
     50        /*
     51         * Make sure that %LOCALAPPDATA% is preferred over %TMP% / %TEMP%, as those can point
     52         * to generic / old-school temp directories like "C:\WINDOWS\TEMP", which also is writable for unprivileged users
     53         * under some circumstances.
     54         *
     55         * See @bugref{10201}
     56         */
     57        , "LOCALAPPDATA", "TMP", "TEMP", "USERPROFILE"
    5158#elif defined(RT_OS_OS2)
    5259        , "TMP", "TEMP", "TMPDIR"
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