diff options
author | Phil Sutter <phil@nwl.cc> | 2021-03-09 21:24:30 +0100 |
---|---|---|
committer | Phil Sutter <phil@nwl.cc> | 2021-11-30 14:57:46 +0100 |
commit | 94e4e77d4343dff02ecd6079f7de34279510a5d9 (patch) | |
tree | 437541c84bdbd3da3edc6ddb06e9669a6359688e /include | |
parent | 15c39ac1f6924e51f0715de4266a5f1a3b9f31fc (diff) |
meta: Fix {g,u}id_type on Big Endian
Using a 64bit variable to temporarily hold the parsed value works only
on Little Endian. uid_t and gid_t (and therefore also pw->pw_uid and
gr->gr_gid) are 32bit.
To fix this, use uid_t/gid_t for the temporary variable but keep the
64bit one for numeric parsing so values exceeding 32bits are still
detected.
Fixes: e0ed4c45d9ad2 ("meta: relax restriction on UID/GID parsing")
Signed-off-by: Phil Sutter <phil@nwl.cc>
Diffstat (limited to 'include')
0 files changed, 0 insertions, 0 deletions