summaryrefslogtreecommitdiff
path: root/libexec
diff options
context:
space:
mode:
authorhannken <hannken@NetBSD.org>1997-06-24 08:49:27 +0000
committerhannken <hannken@NetBSD.org>1997-06-24 08:49:27 +0000
commitc9ccc894a42befc75484d2b72c86a03cf1e558c5 (patch)
treebfd518c7bcab770c514649e862d865740dd10eea /libexec
parentcb723ebbddb7af5a6c3e4d0ca52906b2bdd20b5c (diff)
Add missing braces. `check_modify' returns 0 without a reply. See PR #3779.
Diffstat (limited to 'libexec')
-rw-r--r--libexec/ftpd/ftpcmd.y7
1 files changed, 4 insertions, 3 deletions
diff --git a/libexec/ftpd/ftpcmd.y b/libexec/ftpd/ftpcmd.y
index 19b19ef5374..3101f22acbf 100644
--- a/libexec/ftpd/ftpcmd.y
+++ b/libexec/ftpd/ftpcmd.y
@@ -1,4 +1,4 @@
-/* $NetBSD: ftpcmd.y,v 1.13 1997/06/18 19:05:49 christos Exp $ */
+/* $NetBSD: ftpcmd.y,v 1.14 1997/06/24 08:49:27 hannken Exp $ */
/*
* Copyright (c) 1985, 1988, 1993, 1994
@@ -47,7 +47,7 @@
#if 0
static char sccsid[] = "@(#)ftpcmd.y 8.3 (Berkeley) 4/6/94";
#else
-__RCSID("$NetBSD: ftpcmd.y,v 1.13 1997/06/18 19:05:49 christos Exp $");
+__RCSID("$NetBSD: ftpcmd.y,v 1.14 1997/06/24 08:49:27 hannken Exp $");
#endif
#endif /* not lint */
@@ -734,10 +734,11 @@ check_modify
if (logged_in) {
if (curclass.modify) {
$$ = 1;
- } else
+ } else {
reply(502,
"No permission to use this command.");
$$ = 0;
+ }
} else {
reply(530, "Please login with USER and PASS.");
$$ = 0;