aboutsummaryrefslogtreecommitdiffstats
path: root/lib
diff options
context:
space:
mode:
authorTuncer Ayaz <[email protected]>2010-02-04 01:48:53 +0100
committerBjörn Gustavsson <[email protected]>2010-02-05 11:19:40 +0100
commit49da83de4bbc2ceab37bd7336e10c7910d1b06a3 (patch)
treeb7cd95cc06ca0cac16977692c468638d29f4eb19 /lib
parentf2846970e7fcb3df4c51b6450fe72c145d5e5b2f (diff)
downloadotp-49da83de4bbc2ceab37bd7336e10c7910d1b06a3.tar.gz
otp-49da83de4bbc2ceab37bd7336e10c7910d1b06a3.tar.bz2
otp-49da83de4bbc2ceab37bd7336e10c7910d1b06a3.zip
Fix handling of archive (.ez) files in code:clash/0
code:clash/0 did not take into account .ez files when listing contents of code path entries. Using erl_prim_loader:list_dir/1 instead of file:list_dir/1 fixes the problem. Signed-off-by: Tuncer Ayaz <[email protected]>
Diffstat (limited to 'lib')
-rw-r--r--lib/kernel/src/code.erl3
1 files changed, 2 insertions, 1 deletions
diff --git a/lib/kernel/src/code.erl b/lib/kernel/src/code.erl
index 89d893f8c1..ffe58ae7a9 100644
--- a/lib/kernel/src/code.erl
+++ b/lib/kernel/src/code.erl
@@ -465,7 +465,8 @@ search([{Dir, File} | Tail]) ->
build([]) -> [];
build([Dir|Tail]) ->
- Files = filter(objfile_extension(), Dir, file:list_dir(Dir)),
+ Files = filter(objfile_extension(), Dir,
+ erl_prim_loader:list_dir(Dir)),
[decorate(Files, Dir) | build(Tail)].
decorate([], _) -> [];