Files
pkgsrc-ng/security/openssh/patches/patch-platform.c
2016-01-21 23:42:40 +01:00

17 lines
389 B
C

$NetBSD: patch-platform.c,v 1.4 2015/07/09 16:14:23 taca Exp $
Interix support
--- platform.c.orig 2015-07-01 02:35:31.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
}