mirror of
https://gitlab.com/freepascal.org/fpc/source.git
synced 2025-08-17 07:39:13 +02:00
* Made file open read-only
git-svn-id: trunk@4417 -
This commit is contained in:
parent
93db6d6174
commit
ad11bfe96d
@ -336,11 +336,14 @@ var
|
||||
Buf : Pchar;
|
||||
Context: TMD5Context;
|
||||
Count : Longint;
|
||||
|
||||
ofm : Longint;
|
||||
|
||||
begin
|
||||
MD5Init(Context);
|
||||
Assign(F,N);
|
||||
{$i-}
|
||||
ofm:=FileMode;
|
||||
FileMode:=0;
|
||||
Reset(F,1);
|
||||
{$i+}
|
||||
if (IOResult=0) then
|
||||
@ -355,6 +358,7 @@ begin
|
||||
Close(F);
|
||||
end;
|
||||
MD5Final(Context, Result);
|
||||
FileMode:=ofm;
|
||||
end;
|
||||
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user