|
The following is the patch that Red Hat has applied. It should work for all platforms:
--- wu-ftpd/src/ftpd.c.escape 2001-05-17 20:36:44.000000000 +0200
+++ wu-ftpd/src/ftpd.c 2004-03-01 11:56:17.541416616 +0100
@@ -3365,7 +3365,7 @@
}
#endif /* ALT_HOMEDIR */
#else /* DISABLE_STRICT_HOMEDIR is defined */
- if (chdir("/") < 0) {
+ if (restricted_user || chdir("/") < 0) {
#ifdef VERBOSE_ERROR_LOGING
syslog(LOG_NOTICE, "FTP LOGIN FAILED (cannot chdir) for %s, %s",
remoteident, pw->pw_name);
|