From 4705fa933a522f2e8811dc31290514b10b6fe9f6 Mon Sep 17 00:00:00 2001 From: "Enrico Weigelt, metux IT consult" Date: Mon, 26 Feb 2024 12:26:06 +0100 Subject: xfree86: drop unneeded wrapper xf86PrivsElevated() It's just a dumb wrapper around PrivsElevated(), and also just called in few places, while others call PrivsElevated() directly - thus not needed and can be dropped. Note that it's also not called by drivers, so the export was unnecessary. Signed-off-by: Enrico Weigelt, metux IT consult Part-of: --- hw/xfree86/os-support/linux/lnx_init.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'hw/xfree86/os-support/linux/lnx_init.c') diff --git a/hw/xfree86/os-support/linux/lnx_init.c b/hw/xfree86/os-support/linux/lnx_init.c index 111b3b4e4..4ea791a89 100644 --- a/hw/xfree86/os-support/linux/lnx_init.c +++ b/hw/xfree86/os-support/linux/lnx_init.c @@ -386,7 +386,7 @@ xf86ProcessArgument(int argc, char *argv[], int i) if (!strcmp(argv[i], "-masterfd")) { CHECK_FOR_REQUIRED_ARGUMENT(); - if (xf86PrivsElevated()) + if (PrivsElevated()) FatalError("\nCannot specify -masterfd when server is setuid/setgid\n"); if (sscanf(argv[++i], "%d", &xf86DRMMasterFd) != 1) { UseMsg(); -- cgit v1.2.3