diff options
| author | Laytan Laats <laytanlaats@hotmail.com> | 2024-04-29 23:39:14 +0200 |
|---|---|---|
| committer | Laytan Laats <laytanlaats@hotmail.com> | 2024-04-30 00:24:09 +0200 |
| commit | 485afb011c4dabaebacb20b0e15544a1893a4e12 (patch) | |
| tree | 9c17b2408a4d54e8edad8328abc970be5d62dfa0 /src/bug_report.cpp | |
| parent | 9e94e9dac1335d48f976d6f540bbac0849757566 (diff) | |
sys/info: improve platform_linux
1. fix the `linux.open` call, passing `{ .RDONLY }` becomes `0x00000001`
while `RDONLY` is supposed to be `0x00000000`
2. fix the case where `/etc/os-release` starts with `PRETTY_NAME`
`strings.index` was used but was checking `> 0` while `0` is valid
3. remove unneccesary temporary allocations
4. simplify the logic
Diffstat (limited to 'src/bug_report.cpp')
0 files changed, 0 insertions, 0 deletions