mirror of
https://github.com/X11Libre/xserver.git
synced 2026-03-24 05:54:08 +00:00
kdrive: linux: replace __uid_t and __gid_t by standard types
Fix build on musl. Signed-off-by: Enrico Weigelt, metux IT consult <info@metux.net>
This commit is contained in:
committed by
Enrico Weigelt
parent
e1933ec5a7
commit
126eb37529
@@ -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