Subject: Patch for academ wu-ftpd

From: Dave Alden <[email-masked]>
Date: Mon, 15 Apr 1996 09:38:49 -0400 (EDT)

Hi,

  I've appended a patch that is necessary if you use virtual hosts and guest
groups.  Withouth this patch, anyone logging into the guest group gets placed
into the anonymous home directory.  I've sent this patch to wu-ftpd-bugs
(which seems to be a black hole in my case) after beta 9 and beta 10 -- I
guess this isn't a bug worth getting fixed in Stan's opinion.  :-(
I also sent the patch to the original author of the virtual patch, but he
didn't respond either.

...dave alden

*** ftpd.c_ORIG	Mon Apr 15 01:51:11 1996
--- ftpd.c	Mon Apr 15 09:29:37 1996
***************
*** 1431,1437 ****
          /* We MUST do a chdir() after the chroot. Otherwise the old current
           * directory will be accessible as "." outside the new root! */
  #ifdef VIRTUAL
!       if (virtual_mode) {
          strcpy(pw->pw_dir, virtual_root);
        }
  #endif 
--- 1431,1437 ----
          /* We MUST do a chdir() after the chroot. Otherwise the old current
           * directory will be accessible as "." outside the new root! */
  #ifdef VIRTUAL
!       if (virtual_mode && !guest) {
          strcpy(pw->pw_dir, virtual_root);
        }
  #endif