~rdoering/ubuntu/karmic/erlang/fix-535090

« back to all changes in this revision

Viewing changes to lib/mnesia/src/mnesia_lib.erl

  • Committer: Bazaar Package Importer
  • Author(s): Sergei Golovan
  • Date: 2009-02-15 16:42:52 UTC
  • mfrom: (3.1.2 squeeze)
  • Revision ID: james.westby@ubuntu.com-20090215164252-q5x4rcf8a5pbesb1
Tags: 1:12.b.5-dfsg-2
Upload to unstable after lenny is released.

Show diffs side-by-side

added added

removed removed

Lines of Context:
289
289
    not active_here(Tab).
290
290
 
291
291
exists(Fname) ->
292
 
    case file:rawopen(Fname, read) of
 
292
    case file:open(Fname, [raw,read]) of
293
293
        {ok, F} ->file:close(F), true;
294
294
        _ -> false
295
295
    end.
977
977
    set({'$$$_report', P+1}, {date(), time(), DbgInfo}).
978
978
 
979
979
copy_file(From, To) ->
980
 
    case file:rawopen(From, {binary, read}) of
 
980
    case file:open(From, [raw, binary, read]) of
981
981
        {ok, F} ->
982
 
            case file:rawopen(To, {binary, write}) of
 
982
            case file:open(To, [raw, binary, write]) of
983
983
                {ok, T} ->
984
984
                    Res = copy_file_loop(F, T, 8000),
985
985
                    file:close(F),