summaryrefslogtreecommitdiff
path: root/libexec
diff options
context:
space:
mode:
authorYaroslav Tykhiy <ytykhiy@gmail.com>2003-06-16 11:30:23 +0000
committerYaroslav Tykhiy <ytykhiy@gmail.com>2003-06-16 11:30:23 +0000
commita278e092d3f4df1d770ab1f8568d65cd09e424aa (patch)
treeb53bd4f352f606ad585489b968ff3ede5b5a85d7 /libexec
parentc82b8dcedd44bf1ddcf744c3e7b4b0c29dcaa404 (diff)
Notes
Diffstat (limited to 'libexec')
-rw-r--r--libexec/ftpd/ftpcmd.y16
1 files changed, 8 insertions, 8 deletions
diff --git a/libexec/ftpd/ftpcmd.y b/libexec/ftpd/ftpcmd.y
index 49fc1ffee444f..1b32a2a1364f5 100644
--- a/libexec/ftpd/ftpcmd.y
+++ b/libexec/ftpd/ftpcmd.y
@@ -688,17 +688,17 @@ cmd
}
| SYST check_login CRLF
{
- if ($2)
-#ifdef unix
+ if ($2) {
+ if (hostinfo)
#ifdef BSD
- reply(215, "UNIX Type: L%d Version: BSD-%d",
- CHAR_BIT, BSD);
+ reply(215, "UNIX Type: L%d Version: BSD-%d",
+ CHAR_BIT, BSD);
#else /* BSD */
- reply(215, "UNIX Type: L%d", CHAR_BIT);
+ reply(215, "UNIX Type: L%d", CHAR_BIT);
#endif /* BSD */
-#else /* unix */
- reply(215, "UNKNOWN Type: L%d", CHAR_BIT);
-#endif /* unix */
+ else
+ reply(215, "UNKNOWN Type: L%d", CHAR_BIT);
+ }
}
/*