diff options
author | Björn Gustavsson <[email protected]> | 2017-02-06 13:06:49 +0100 |
---|---|---|
committer | Björn Gustavsson <[email protected]> | 2017-02-06 13:06:49 +0100 |
commit | bf24d74c27b8773ac3d3c6f970df04098fa74c21 (patch) | |
tree | 7efe4ee900f882c450c46be1f4cbe50f32430ee3 /lib/kernel/src/file.erl | |
parent | 7bd17af1b0adacc16fe2651283bd5006cfba4a00 (diff) | |
parent | e6f84e033a6a809a68f188c306151567c9854050 (diff) | |
download | otp-bf24d74c27b8773ac3d3c6f970df04098fa74c21.tar.gz otp-bf24d74c27b8773ac3d3c6f970df04098fa74c21.tar.bz2 otp-bf24d74c27b8773ac3d3c6f970df04098fa74c21.zip |
Merge branch 'maint'
* maint:
Store messages for 'rex' and 'error_logger' off heap
file: match enoent and enotdir in path_open
Diffstat (limited to 'lib/kernel/src/file.erl')
-rw-r--r-- | lib/kernel/src/file.erl | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/kernel/src/file.erl b/lib/kernel/src/file.erl index 1971df9038..79e72cdc6d 100644 --- a/lib/kernel/src/file.erl +++ b/lib/kernel/src/file.erl @@ -1424,7 +1424,7 @@ path_open_first([Path|Rest], Name, Mode, LastError) -> case open(FileName, Mode) of {ok, Fd} -> {ok, Fd, FileName}; - {error, enoent} -> + {error, Reason} when Reason =:= enoent; Reason =:= enotdir -> path_open_first(Rest, Name, Mode, LastError); Error -> Error |