+Thu Feb 18 18:34:23 1999 Tom Yu <tlyu@mit.edu>
+
+ * ftpd.c (login): Add call to setluid() if necessary.
+
Fri Feb 12 21:11:18 1999 Tom Yu <tlyu@mit.edu>
* ftpd.c: strcat -> strncat
goto bad;
}
}
+#ifdef HAVE_SETLUID
+ /*
+ * If we're on a system which keeps track of login uids, then
+ * set the login uid. If this fails this opens up a problem on DEC OSF
+ * with C2 enabled.
+ */
+ if (setluid((uid_t)pw->pw_uid) < 0) {
+ reply(550, "Can't set luid.");
+ goto bad;
+ }
+#endif
if (krb5_seteuid((uid_t)pw->pw_uid) < 0) {
reply(550, "Can't set uid.");
goto bad;