mirror of
https://github.com/termux/termux-packages.git
synced 2024-12-13 03:00:31 +00:00
287cf1e176
The getuid() root checks produces undesired behavior if this function is used instead of proper checks for file permissions whether the `/proc/stat` can be accessed or not. - If `htop` runs in fake root environments (proot/fakeroot), the getuid() function would obviously return the root user id. as a result, it will use the actual /proc/stat file and would fail in case the user does not have `/proc/stat` access. - The getuid() checks is the unreliable way of checking the permissions of `/proc/stat` file as suppose that it would always require root for checking the readability of the process status file and use it. using access() function should allow proper checks regardless of a logged user account. This change would likely replace the postinst checks of /proc/stat file and include the fake process status file in the deb package instead
10 lines
1.1 KiB
Plaintext
10 lines
1.1 KiB
Plaintext
cpu 1035 500 702 8510 1547 0 272 0 0 0
|
|
cpu0 636 290 372 3891 931 0 200 0 0 0
|
|
intr 35286 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 6 0 1779 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0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