stub win32 issetugid implementation

ok deraadt@ beck@
This commit is contained in:
Brent Cook 2014-07-28 21:06:37 -05:00
parent 46dd7aac40
commit 983103b0db
2 changed files with 24 additions and 0 deletions

View File

@ -78,6 +78,9 @@ if NO_ISSETUGID
if HOST_LINUX
libcompat_la_SOURCES += compat/issetugid_linux.c
endif
if HOST_WIN
libcompat_la_SOURCES += compat/issetugid_win.c
endif
endif
noinst_HEADERS = des/ncbc_enc.c

View File

@ -0,0 +1,21 @@
/*
* issetugid implementation for Windows
* Public domain
*/
#include <unistd.h>
/*
* Windows does not have a native setuid/setgid functionality.
* A user must enter credentials each time a process elevates its
* privileges.
*
* So, in theory, this could always return 0, given what I know currently.
* However, it makes sense to stub out initially in 'safe' mode until we
* understand more (and determine if any disabled functionality is actually
* useful on Windows anyway).
*/
int issetugid(void)
{
return 1;
}