#include "log.h"
#include "servconf.h"
#include "canohost.h"
+#include "uidswap.h"
#include <sia.h>
#include <siad.h>
extern char **saved_argv;
int
-auth_sia_password(Authctxt *authctxt, char *pass)
+sys_auth_passwd(Authctxt *authctxt, char *pass)
{
int ret;
SIAENTITY *ent = NULL;
sia_ses_release(&ent);
- if (setreuid(geteuid(), geteuid()) < 0)
- fatal("setreuid: %s", strerror(errno));
+ setuid(0);
+ permanently_set_uid(pw);
}
#endif /* HAVE_OSF_SIA */