Skip to content

Commit

Permalink
Driver names should be strings, not atoms
Browse files Browse the repository at this point in the history
  • Loading branch information
kostis authored and proxyles committed Apr 27, 2011
1 parent bfc2254 commit 0f03b1e
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions erts/preloaded/src/prim_file.erl
Original file line number Diff line number Diff line change
Expand Up @@ -64,7 +64,7 @@
-include("file.hrl").

-define(DRV, efile).
-define(FD_DRV, efile).
-define(FD_DRV, "efile").

-define(LARGEFILESIZE, (1 bsl 63)).

Expand Down Expand Up @@ -506,7 +506,7 @@ read_file(_) ->

%% Takes a Port opened with open/1.
read_file(Port, File) when is_port(Port),
(is_list(File) orelse is_binary(File))->
(is_list(File) orelse is_binary(File)) ->
Cmd = [?FILE_READ_FILE | pathname(File)],
case drv_command(Port, Cmd) of
{error, enomem} ->
Expand Down Expand Up @@ -832,7 +832,7 @@ drv_open(Driver, Portopts) ->
{ok, Port}
catch
error:Reason ->
{error,Reason}
{error, Reason}
end.


Expand Down

0 comments on commit 0f03b1e

Please sign in to comment.