mirror of
https://github.com/X11Libre/xserver.git
synced 2026-04-14 17:18:09 +00:00
kdrive: linux: replace __uid_t and __gid_t by standard types
Fix build on musl.
Backport from: 126eb37529
Fixes: #2162
Signed-off-by: callmetango <callmetango@users.noreply.github.com>
This commit is contained in:
committed by
Enrico Weigelt
parent
c272ad6571
commit
1f6966673a
@@ -66,14 +66,12 @@ static void
|
||||
LinuxCheckChown(const char *file)
|
||||
{
|
||||
struct stat st;
|
||||
__uid_t u;
|
||||
__gid_t g;
|
||||
int r;
|
||||
|
||||
if (stat(file, &st) < 0)
|
||||
return;
|
||||
u = getuid();
|
||||
g = getgid();
|
||||
uid_t u = getuid();
|
||||
gid_t g = getgid();
|
||||
if (st.st_uid != u || st.st_gid != g) {
|
||||
r = chown(file, u, g);
|
||||
(void) r;
|
||||
|
||||
Reference in New Issue
Block a user