summaryrefslogtreecommitdiffstats
path: root/bsd-misc.c
diff options
context:
space:
mode:
authorDamien Miller <djm@mindrot.org>1999-12-30 15:08:44 +1100
committerDamien Miller <djm@mindrot.org>1999-12-30 15:08:44 +1100
commite72b7af17e519eb1d433b5119ef551f2584f8be6 (patch)
tree7ebbc8fefdfcfd9669dbe05718b142996df69a85 /bsd-misc.c
parentece22a8312357e1f34916659d77fa7dd8d15ae32 (diff)
- Removed most of the pam code into its own file auth-pam.[ch]. This
cleaned up sshd.c up significantly. - Several other cleanups
Diffstat (limited to 'bsd-misc.c')
-rw-r--r--bsd-misc.c22
1 files changed, 22 insertions, 0 deletions
diff --git a/bsd-misc.c b/bsd-misc.c
index c952fd0f..0ffe5168 100644
--- a/bsd-misc.c
+++ b/bsd-misc.c
@@ -212,3 +212,25 @@ int setenv(const char *name, const char *value, int overwrite)
return(result);
}
#endif /* !HAVE_SETENV */
+
+#ifndef HAVE_SETLOGIN
+int setlogin(const char *name)
+{
+ return(0);
+}
+#endif /* !HAVE_SETLOGIN */
+
+#ifndef HAVE_INNETGR
+int innetgr(const char *netgroup, const char *host,
+ const char *user, const char *domain)
+{
+ return(0);
+}
+#endif /* HAVE_INNETGR */
+
+#if !defined(HAVE_SETEUID) && defined(HAVE_SETREUID)
+int seteuid(uid_t euid)
+{
+ return(setreuid(-1,euid));
+}
+#endif /* !defined(HAVE_SETEUID) && defined(HAVE_SETREUID) */