No geteuid() on Windows
This commit is contained in:

committed by
Love Hornquist Astrand

parent
77fee77d0e
commit
d6adaa775f
@@ -319,9 +319,8 @@ krb5_init_context(krb5_context *context)
|
|||||||
goto out;
|
goto out;
|
||||||
#endif
|
#endif
|
||||||
#ifdef NEED_SOCK_INIT
|
#ifdef NEED_SOCK_INIT
|
||||||
if (SOCK_INIT) {
|
if (SOCK_INIT)
|
||||||
p->flags |= KRB5_CTX_F_SOCKETS_INITIALIZED;
|
p->flags |= KRB5_CTX_F_SOCKETS_INITIALIZED;
|
||||||
}
|
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
out:
|
out:
|
||||||
@@ -1297,9 +1296,11 @@ _krb5_homedir_access(krb5_context context)
|
|||||||
{
|
{
|
||||||
krb5_boolean allow;
|
krb5_boolean allow;
|
||||||
|
|
||||||
|
#ifdef HAVE_GETEUID
|
||||||
/* is never allowed for root */
|
/* is never allowed for root */
|
||||||
if (geteuid() == 0)
|
if (geteuid() == 0)
|
||||||
return FALSE;
|
return FALSE;
|
||||||
|
#endif
|
||||||
|
|
||||||
if (context && (context->flags & KRB5_CTX_F_HOMEDIR_ACCESS) == 0)
|
if (context && (context->flags & KRB5_CTX_F_HOMEDIR_ACCESS) == 0)
|
||||||
return FALSE;
|
return FALSE;
|
||||||
|
Reference in New Issue
Block a user