diff options
| author | Tomas Bzatek <tbzatek@redhat.com> | 2009-10-03 13:22:27 +0200 |
|---|---|---|
| committer | Tomas Bzatek <tbzatek@redhat.com> | 2009-10-03 13:22:27 +0200 |
| commit | 15efde21a039f2dfa11c715c9c40b6d12813baf3 (patch) | |
| tree | 48ec9dcf18ecded5cfb478e22a6f8b0b695e93c7 /UEngines.pas | |
| parent | dffc52bad545084a53b20f892ebf51d1d7c7fa78 (diff) | |
| download | tuxcmd-15efde21a039f2dfa11c715c9c40b6d12813baf3.tar.xz | |
Consolidate basic glibc structs
Fixes crashes on PPC32
Diffstat (limited to 'UEngines.pas')
| -rw-r--r-- | UEngines.pas | 14 |
1 files changed, 7 insertions, 7 deletions
diff --git a/UEngines.pas b/UEngines.pas index b77d7e3..c08b077 100644 --- a/UEngines.pas +++ b/UEngines.pas @@ -303,7 +303,7 @@ begin IsChr := __S_ISTYPE(StatBuf^.st_mode, __S_IFCHR); IsFIFO := __S_ISTYPE(StatBuf^.st_mode, __S_IFIFO); IsSock := __S_ISTYPE(StatBuf^.st_mode, __S_IFSOCK); - ModifyTime := StatBuf^.st_mtim.tv_sec; + ModifyTime := StatBuf^.st_mtime; if StatBuf^.st_uid = 4294967295 then UID := getuid else UID := StatBuf^.st_uid; if StatBuf^.st_gid = 4294967295 then GID := getgid @@ -567,8 +567,8 @@ var Handle : PDIR; else UID := StatBuf_local^.st_uid; if StatBuf_local^.st_gid = 4294967295 then GID := getgid else GID := StatBuf_local^.st_gid; - atime := StatBuf_local^.st_atim.tv_sec; - mtime := StatBuf_local^.st_mtim.tv_sec; + atime := StatBuf_local^.st_atime; + mtime := StatBuf_local^.st_mtime; if IsLnk and AddCurrDirStage then DebugMsg(['*** Assertion failed AddEntry: Item^.IsLnk = True']); if IsLnk and (not AddCurrDirStage) then begin i := readlink(PChar(APath + String(PChar(@DirEnt^.d_name[0]))), LnkBuf, SizeOf(LnkBuf)); @@ -580,7 +580,7 @@ var Handle : PDIR; // StrLCopy(LnkPointTo, @LnkBuf[0], i); end; end; - ModifyTime := StatBuf_local^.st_mtim.tv_sec; + ModifyTime := StatBuf_local^.st_mtime; // DebugMsg([FormatDateTime('c', ModifyTime)]); Level := ALevel + Ord(not AddCurrDirStage); libc_free(StatBuf_local); @@ -667,14 +667,14 @@ begin // DebugMsg(['x2']); ForceMove := False; // DebugMsg(['x2']); - ModifyTime := StatBuf^.st_mtim.tv_sec; + ModifyTime := StatBuf^.st_mtime; // DebugMsg(['x2']); if StatBuf^.st_uid = 4294967295 then UID := getuid else UID := StatBuf^.st_uid; if StatBuf^.st_gid = 4294967295 then GID := getgid else GID := StatBuf^.st_gid; - atime := StatBuf^.st_atim.tv_sec; - mtime := StatBuf^.st_mtim.tv_sec; + atime := StatBuf^.st_atime; + mtime := StatBuf^.st_mtime; // DebugMsg(['x1']); libc_free(StatBuf); // DebugMsg(['x1']); |
