* Copyright (c) 1998-2003, Index Data.
* See the file LICENSE for details.
*
* Copyright (c) 1998-2003, Index Data.
* See the file LICENSE for details.
*
if (!(pw = getpwnam(uid)))
{
yaz_log(LOG_FATAL, "%s: Unknown user", uid);
exit(3);
}
if (!(pw = getpwnam(uid)))
{
yaz_log(LOG_FATAL, "%s: Unknown user", uid);
exit(3);
}
if (setuid(pw->pw_uid) < 0)
{
yaz_log(LOG_FATAL|LOG_ERRNO, "setuid");
if (setuid(pw->pw_uid) < 0)
{
yaz_log(LOG_FATAL|LOG_ERRNO, "setuid");