Commit 3ad035d2 authored by evan@chromium.org's avatar evan@chromium.org

posix: print error message when mkdtemp fails.

Failure seen on the buildbots.  It would help to know why.

Review URL: http://codereview.chromium.org/3067013

git-svn-id: svn://svn.chromium.org/chrome/trunk/src@54016 0039d316-1c4b-4281-b951-d872f2087c98
parent d28c6952
...@@ -420,8 +420,10 @@ static bool CreateTemporaryDirInDirImpl(const FilePath& base_dir, ...@@ -420,8 +420,10 @@ static bool CreateTemporaryDirInDirImpl(const FilePath& base_dir,
// this should be OK since mkdtemp just replaces characters in place // this should be OK since mkdtemp just replaces characters in place
char* buffer = const_cast<char*>(sub_dir_string.c_str()); char* buffer = const_cast<char*>(sub_dir_string.c_str());
char* dtemp = mkdtemp(buffer); char* dtemp = mkdtemp(buffer);
if (!dtemp) if (!dtemp) {
DPLOG(ERROR) << "mkdtemp";
return false; return false;
}
*new_dir = FilePath(dtemp); *new_dir = FilePath(dtemp);
return true; return true;
} }
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment