mirror of
https://github.com/Stichting-MINIX-Research-Foundation/pkgsrc-ng.git
synced 2025-08-05 18:58:55 -04:00
17 lines
392 B
C
17 lines
392 B
C
$NetBSD: patch-platform.c,v 1.5 2016/01/18 12:53:26 jperkin Exp $
|
|
|
|
Interix support
|
|
|
|
--- platform.c.orig 2015-08-21 04:49:03.000000000 +0000
|
|
+++ platform.c
|
|
@@ -90,7 +90,9 @@ platform_privileged_uidswap(void)
|
|
/* uid 0 is not special on Cygwin so always try */
|
|
return 1;
|
|
#else
|
|
+#if !defined(HAVE_INTERIX)
|
|
return (getuid() == 0 || geteuid() == 0);
|
|
+#endif /* !HAVE_INTERIX */
|
|
#endif
|
|
}
|
|
|