polkit-github-migration-bot / t4_polkit

Other
0 stars 0 forks source link

polkit uses signed int for uid_t, while linux uses unsigned #192

Open polkit-github-migration-bot opened 1 year ago

polkit-github-migration-bot commented 1 year ago

In gitlab.freedesktop.org by jrybar on Mar 1, 2023, 12:34

Link to the original issue: https://gitlab.freedesktop.org/polkit/polkit/-/issues/190 Despite posix which doesn't state whether uid_t should be signed, usual linux configuration uses U32 (`grep -rn "UID_T_TYPE" /usr/include/bits/`).

Proposed fix: Use preprocessor branch detecting the platform and change definition in struct PolkitUnixProcess accordingly, along with rest of associated code.
This will preserve multiplatformness and also allow high UIDs on linux (where it seems to be more and more required and used).

polkit-github-migration-bot commented 1 year ago

In gitlab.freedesktop.org by jrybar on Mar 1, 2023, 12:36

Associated: !22