proxmox/proxmox-sys/src
Thomas Lamprecht daff73bdd6 sys: use correct pointer type for mkdtemp return value
The libc function mkdtemp takes a C char pointer while we previously
cast our OSString buffer as i8 pointer, but that's not valid on
platforms like AArch64 (ARM), where char is equivalent with a u8.

Fix that by using the c_char type that was explicitly made to always
get the correct, platform-independent type for C chars when doing FFI.

This was reported by OJaksch on our Arch Linux User Repo (AUR) package
[0].

https://aur.archlinux.org/packages/proxmox-backup-client#comment-1006851

Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
2025-01-21 09:14:43 +01:00
..
fs sys: use correct pointer type for mkdtemp return value 2025-01-21 09:14:43 +01:00
linux sys: remove lazy_static dependency 2024-08-14 10:33:42 +02:00
boot_mode.rs sys: cleanup assigned and immediately returned var 2023-11-29 14:57:29 +01:00
command.rs sys: rust fmt 2022-04-10 17:39:31 +02:00
crypt.rs sys: crypt: style + drop unnecessary length check 2024-08-28 13:04:43 +02:00
error.rs async, sys: replace deprecated io_err_other 2024-07-26 13:09:33 +02:00
fd.rs sys: open directories with O_CLOEXEC 2024-12-02 17:06:25 +01:00
lib.rs sys: remove lazy_static dependency 2024-08-14 10:33:42 +02:00
logrotate.rs sys: rust fmt 2022-04-10 17:39:31 +02:00
macros.rs move io error helpers to proxmox-lang 2022-02-21 13:35:14 +01:00
mmap.rs async, sys: replace deprecated io_err_other 2024-07-26 13:09:33 +02:00
process_locker.rs sys: process_locker: explicitly don't truncate the lock file 2024-06-28 11:18:04 +02:00
systemd.rs sys: systemd: remove empty line after outer attribute 2024-12-03 13:44:05 +01:00