/*
* Copyright (C) 2013-2014 Intel Corporation.
- *
+ *
* This library is free software; you can redistribute it and/or
* modify it under the terms of the GNU Library General Public
* License as published by the Free Software Foundation; either
* Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA
*
* Authors:
- * José Bollo <jose.bollo@open.eurogiciel.org>
- * Stéphane Desneux <stephane.desneux@open.eurogiciel.org>
- * Jean-Benoit Martin <jean-benoit.martin@open.eurogiciel.org>
+ * José Bollo <jose.bollo@open.eurogiciel.org>
+ * Stéphane Desneux <stephane.desneux@open.eurogiciel.org>
+ * Jean-Benoit Martin <jean-benoit.martin@open.eurogiciel.org>
*
*/
uid_t get_uid(struct tzplatform_context *context)
{
- uid_t result;
+ uid_t result;
- result = context->user;
- if (result == _USER_NOT_SET_)
- result = getuid();
+ result = context->user;
+ if (result == _USER_NOT_SET_)
+ result = getuid();
- return result;
+ return result;
}
#if _FOREIGN_HAS_(EUID)
uid_t get_euid(struct tzplatform_context *context)
{
- uid_t result;
+ uid_t result;
- result = context->user;
- if (result == _USER_NOT_SET_)
- result = geteuid();
+ result = context->user;
+ if (result == _USER_NOT_SET_)
+ result = geteuid();
- return result;
+ return result;
}
#endif
#if _FOREIGN_HAS_(GID)
gid_t get_gid(struct tzplatform_context *context)
{
- return getgid();
+ return getgid();
}
#endif