summaryrefslogtreecommitdiff
path: root/libexec
diff options
context:
space:
mode:
authorDaniel O'Callaghan <danny@FreeBSD.org>2000-11-26 23:33:36 +0000
committerDaniel O'Callaghan <danny@FreeBSD.org>2000-11-26 23:33:36 +0000
commit3fbaa839f913283198804f64e6d276c58baa62da (patch)
treed4f685bb3ca0abcfa5da37f6fcf08fcab3db5bc6 /libexec
parent32704e57471212830dedc26a5a3b060ab605f078 (diff)
Notes
Diffstat (limited to 'libexec')
-rw-r--r--libexec/ftpd/ftpcmd.y8
1 files changed, 6 insertions, 2 deletions
diff --git a/libexec/ftpd/ftpcmd.y b/libexec/ftpd/ftpcmd.y
index 9e3422120793..c30acef5ff1b 100644
--- a/libexec/ftpd/ftpcmd.y
+++ b/libexec/ftpd/ftpcmd.y
@@ -500,8 +500,12 @@ cmd
}
| CWD check_login CRLF
{
- if ($2)
- cwd(pw->pw_dir);
+ if ($2) {
+ if (guest)
+ cwd("/");
+ else
+ cwd(pw->pw_dir);
+ }
}
| CWD check_login SP pathname CRLF
{