VirtualBox

Changeset 36155 in vbox for trunk/src/VBox/Runtime/r3


Ignore:
Timestamp:
Mar 3, 2011 6:12:18 PM (14 years ago)
Author:
vboxsync
svn:sync-xref-src-repo-rev:
70340
Message:

Runtime/r3/solaris/coredumper: Make sure directory exists during RTCoreDumperSetup()

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/VBox/Runtime/r3/solaris/coredumper-solaris.cpp

    r34178 r36155  
    22772277                 VERR_INVALID_PARAMETER);
    22782278
     2279    RT_ZERO(g_szCoreDumpDir);
     2280    if (pszOutputDir)
     2281    {
     2282        if (RTDirExists(pszOutputDir))
     2283            RTStrCopy(g_szCoreDumpDir, sizeof(g_szCoreDumpDir), pszOutputDir);
     2284        else
     2285            return VERR_NOT_A_DIRECTORY;
     2286    }
     2287
    22792288    /*
    22802289     * Install core dump signal handler only if the flags changed or if it's the first time.
     
    23092318    }
    23102319
    2311     RT_ZERO(g_szCoreDumpDir);
    2312     if (pszOutputDir)
    2313         RTStrCopy(g_szCoreDumpDir, sizeof(g_szCoreDumpDir), pszOutputDir);
    2314 
    23152320    return VINF_SUCCESS;
    23162321}
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