mirror of
https://github.com/yarrick/iodine.git
synced 2024-11-16 21:03:17 +00:00
turn off root check in cygwin for now
This commit is contained in:
parent
97bf71e944
commit
6de3368f39
|
@ -90,11 +90,13 @@ int setgroups(int count, int *groups)
|
||||||
void
|
void
|
||||||
check_superuser(void (*usage_fn)(void))
|
check_superuser(void (*usage_fn)(void))
|
||||||
{
|
{
|
||||||
|
#ifndef __CYGWIN__
|
||||||
if (geteuid() != 0) {
|
if (geteuid() != 0) {
|
||||||
warnx("Run as root and you'll be happy.\n");
|
warnx("Run as root and you'll be happy.\n");
|
||||||
usage_fn();
|
usage_fn();
|
||||||
/* NOTREACHED */
|
/* NOTREACHED */
|
||||||
}
|
}
|
||||||
|
#endif
|
||||||
}
|
}
|
||||||
|
|
||||||
int
|
int
|
||||||
|
|
Loading…
Reference in a new issue