22 lines
529 B
C
22 lines
529 B
C
/*
|
|
* 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;
|
|
}
|