Sfoglia il codice sorgente

* re-applied r7485, which got lost in r7639 because an old
revision (r6623) of the file was renamed to cfileutl
(mantis #10873)

git-svn-id: trunk@10488 -

Jonas Maebe 17 anni fa
parent
commit
f1bd686065
1 ha cambiato i file con 4 aggiunte e 0 eliminazioni
  1. 4 0
      compiler/cfileutl.pas

+ 4 - 0
compiler/cfileutl.pas

@@ -254,6 +254,10 @@ implementation
                  ((dir.Name<>'.') and
                   (dir.Name<>'..')) then
                 begin
+                  { Force Archive bit so the attribute always has a value. This is needed
+                    to be able to see the difference in the directoryentries lookup if a file
+                    exists or not }
+                  Dir.Attr:=Dir.Attr or faArchive;
                   if not(tf_files_case_sensitive in source_info.flags) then
                     if (tf_files_case_aware in source_info.flags) then
                       begin