cvs commit: src/libexec/ftpd ftpcmd.y

Yar Tikhiy yar at FreeBSD.org
Mon Jun 16 04:30:25 PDT 2003


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 <alexs _at_ snark.ratmir.ru>
  MFC after:      1 week
  
  Revision  Changes    Path
  1.51      +8 -8      src/libexec/ftpd/ftpcmd.y


More information about the cvs-all mailing list