From owner-cvs-all@FreeBSD.ORG Mon Jun 16 04:30:25 2003 Return-Path: Delivered-To: cvs-all@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 236CF37B401; Mon, 16 Jun 2003 04:30:25 -0700 (PDT) Received: from repoman.freebsd.org (repoman.freebsd.org [216.136.204.115]) by mx1.FreeBSD.org (Postfix) with ESMTP id C9BE543FE1; Mon, 16 Jun 2003 04:30:24 -0700 (PDT) (envelope-from yar@FreeBSD.org) Received: from repoman.freebsd.org (localhost [127.0.0.1]) by repoman.freebsd.org (8.12.6/8.12.6) with ESMTP id h5GBUO0U055242; Mon, 16 Jun 2003 04:30:24 -0700 (PDT) (envelope-from yar@repoman.freebsd.org) Received: (from yar@localhost) by repoman.freebsd.org (8.12.6/8.12.6/Submit) id h5GBUNB4055237; Mon, 16 Jun 2003 04:30:23 -0700 (PDT) Message-Id: <200306161130.h5GBUNB4055237@repoman.freebsd.org> From: Yar Tikhiy Date: Mon, 16 Jun 2003 04:30:23 -0700 (PDT) To: src-committers@FreeBSD.org, cvs-src@FreeBSD.org, cvs-all@FreeBSD.org X-FreeBSD-CVS-Branch: HEAD Subject: cvs commit: src/libexec/ftpd ftpcmd.y X-BeenThere: cvs-all@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list List-Id: CVS commit messages for the entire tree List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 16 Jun 2003 11:30:25 -0000 yar 2003/06/16 04:30:23 PDT FreeBSD src repository Modified files: libexec/ftpd ftpcmd.y Log: If ftpd is run with an -h option (hide host-specific info,) don't reveal the info in reply to the SYST command. Get rid of using the "unix" macro at the same time. It was a rather poor way to check if the system was Unix since there were quite a few Unix clones out there whose cc didn't define "unix" (e.g., NetBSD.) It was also sensitive to the C standard used, which caused unnecessary trouble: With -std=c99, it should have been "__unix__", and so on. PR: bin/50690 Submitted by: Alex Semenyaka MFC after: 1 week Revision Changes Path 1.51 +8 -8 src/libexec/ftpd/ftpcmd.y