aboutsummaryrefslogtreecommitdiffstats
path: root/erts/emulator/drivers/ose
diff options
context:
space:
mode:
authorJonas Karlsson <[email protected]>2013-11-08 14:00:36 +0100
committerLukas Larsson <[email protected]>2014-02-24 15:16:01 +0100
commita0766a4efeefe0ac035d2be04816274aee5751f3 (patch)
tree22de6927c4a1bdb778cbd764fea8f400ded170b8 /erts/emulator/drivers/ose
parent5352e800edf7e59d352a8d2dc7a7bee7ba916e1b (diff)
downloadotp-a0766a4efeefe0ac035d2be04816274aee5751f3.tar.gz
otp-a0766a4efeefe0ac035d2be04816274aee5751f3.tar.bz2
otp-a0766a4efeefe0ac035d2be04816274aee5751f3.zip
ose: Bugfixes to filesystem related issues.
Diffstat (limited to 'erts/emulator/drivers/ose')
-rw-r--r--erts/emulator/drivers/ose/ose_efile.c6
1 files changed, 5 insertions, 1 deletions
diff --git a/erts/emulator/drivers/ose/ose_efile.c b/erts/emulator/drivers/ose/ose_efile.c
index 897d654e89..9980b07817 100644
--- a/erts/emulator/drivers/ose/ose_efile.c
+++ b/erts/emulator/drivers/ose/ose_efile.c
@@ -258,7 +258,11 @@ efile_mkdir(Efile_error* errInfo, /* Where to return error codes. */
#ifdef NO_MKDIR_MODE
return check_error(mkdir(name), errInfo);
#else
- return check_error(mkdir(name, DIR_MODE), errInfo);
+ int res = mkdir(name, DIR_MODE);
+ if (res < 0 && errno == EINVAL) {
+ errno = ENOENT;
+ }
+ return check_error(res, errInfo);
#endif
}