diff options
| author | Tomas Bzatek <tbzatek@redhat.com> | 2025-11-28 22:01:20 +0100 |
|---|---|---|
| committer | Tomas Bzatek <tbzatek@redhat.com> | 2025-11-28 22:01:20 +0100 |
| commit | d4564a0007d1b248af07d5a29a4bd9ccedb61fde (patch) | |
| tree | 600da6e36cbcfca425d0b3439df823c667d58d47 /UConfig.pas | |
| parent | 69dd2b81de3bcbb955669f7937f3844b86467849 (diff) | |
| download | tuxcmd-d4564a0007d1b248af07d5a29a4bd9ccedb61fde.tar.xz | |
Misc. ULibc fixes
Diffstat (limited to 'UConfig.pas')
| -rw-r--r-- | UConfig.pas | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/UConfig.pas b/UConfig.pas index 1244f21..d3652a5 100644 --- a/UConfig.pas +++ b/UConfig.pas @@ -708,7 +708,7 @@ begin Exit; end; s := IncludeTrailingPathDelimiter(s) + 'filetypes'; - if access(PChar(s), R_OK) = 0 then libc_remove(PChar(s)); + libc_remove(PChar(s)); IniFile := TMyIniFile.Create(s, False); try try @@ -840,7 +840,7 @@ begin Exit; end; s := IncludeTrailingPathDelimiter(s) + 'mounter'; - if access(PChar(s), R_OK) = 0 then libc_remove(PChar(s)); + libc_remove(PChar(s)); IniFile := TMyIniFile.Create(s, False); try try @@ -1030,7 +1030,7 @@ begin Exit; end; s := IncludeTrailingPathDelimiter(s) + 'connmgr'; - if access(PChar(s), R_OK) = 0 then libc_remove(PChar(s)); + libc_remove(PChar(s)); IniFile := TMyIniFile.Create(s, False); try try @@ -1110,7 +1110,7 @@ function GetFileTime(FileName: string): time_t; var StatBuf: Pstat64; begin Result := -1; - StatBuf := malloc(sizeof(Tstat64)); + StatBuf := libc_malloc(sizeof(Tstat64)); memset(StatBuf, 0, sizeof(Tstat64)); if lstat64(PChar(FileName), StatBuf) = 0 then Result := StatBuf^.st_mtime; libc_free(StatBuf); |
