pkgsrc-ng/security/openssh/patches/patch-platform.c
2016-11-18 22:39:22 +01:00

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
}