summaryrefslogtreecommitdiff
path: root/UConfig.pas
diff options
context:
space:
mode:
authorTomas Bzatek <tbzatek@redhat.com>2025-11-28 22:01:20 +0100
committerTomas Bzatek <tbzatek@redhat.com>2025-11-28 22:01:20 +0100
commitd4564a0007d1b248af07d5a29a4bd9ccedb61fde (patch)
tree600da6e36cbcfca425d0b3439df823c667d58d47 /UConfig.pas
parent69dd2b81de3bcbb955669f7937f3844b86467849 (diff)
downloadtuxcmd-d4564a0007d1b248af07d5a29a4bd9ccedb61fde.tar.xz
Misc. ULibc fixes
Diffstat (limited to 'UConfig.pas')
-rw-r--r--UConfig.pas8
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);