mirror of
https://github.com/doublecmd/doublecmd.git
synced 2026-06-21 09:58:13 +00:00
parent
3845a75d3b
commit
ab816613d1
1 changed files with 6 additions and 5 deletions
|
|
@ -188,13 +188,14 @@ function WinToUnixFileAttr(Attr: TFileAttrs): TFileAttrs;
|
|||
begin
|
||||
Result := S_IRUSR or S_IRGRP or S_IROTH;
|
||||
|
||||
if (Attr and faReadOnly) = 0 then
|
||||
Result := Result or S_IWUSR;
|
||||
|
||||
if (Attr and faDirectory) <> 0 then
|
||||
Result := Result or S_IFDIR or S_IXUGO
|
||||
else
|
||||
Result := Result or S_IFDIR or S_IXUGO or S_IWUSR
|
||||
else begin
|
||||
Result := Result or S_IFREG;
|
||||
|
||||
if (Attr and faReadOnly) = 0 then
|
||||
Result := Result or S_IWUSR;
|
||||
end;
|
||||
end;
|
||||
|
||||
function UnixToWinFileAttr(Attr: TFileAttrs): TFileAttrs;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue