Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(377)

Unified Diff: base/file_util_posix.cc

Issue 3067013: posix: print error message when mkdtemp fails. (Closed) Base URL: http://src.chromium.org/git/chromium.git
Patch Set: Created 10 years, 5 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « no previous file | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: base/file_util_posix.cc
diff --git a/base/file_util_posix.cc b/base/file_util_posix.cc
index 434c859f945769c75b9c73bafca836ae3131b1de..4d9cf42080edd90ddc793b43fa1f924f0674f994 100644
--- a/base/file_util_posix.cc
+++ b/base/file_util_posix.cc
@@ -420,8 +420,10 @@ static bool CreateTemporaryDirInDirImpl(const FilePath& base_dir,
// this should be OK since mkdtemp just replaces characters in place
char* buffer = const_cast<char*>(sub_dir_string.c_str());
char* dtemp = mkdtemp(buffer);
- if (!dtemp)
+ if (!dtemp) {
+ DPLOG(ERROR) << "mkdtemp";
Nico 2010/07/28 20:57:52 << errno? or does DPLOG do that already?
return false;
+ }
*new_dir = FilePath(dtemp);
return true;
}
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698