aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
Diffstat (limited to 'src')
-rw-r--r--src/library.js3
1 files changed, 1 insertions, 2 deletions
diff --git a/src/library.js b/src/library.js
index 491543a9..048a55fd 100644
--- a/src/library.js
+++ b/src/library.js
@@ -475,8 +475,7 @@ LibraryManager.library = {
mkdtemp__deps: ['mktemp', 'mkdir'],
mkdtemp: function(template) {
template = _mktemp(template);
- _mkdir(template, 0700);
- return template;
+ return (_mkdir(template, 0700) === 0) ? template : 0;
},
fcntl__deps: ['$FS', '__setErrNo', '$ERRNO_CODES'],
fcntl: function(fildes, cmd, varargs, dup2) {