Skip site navigation (1)Skip section navigation (2)
Date:      Fri, 12 Jul 2002 08:51:16 -0700 (PDT)
From:      Yar Tikhiy <yar@FreeBSD.org>
To:        cvs-committers@FreeBSD.org, cvs-all@FreeBSD.org
Subject:   cvs commit: src/libexec/ftpd ftpd.c
Message-ID:  <200207121551.g6CFpGjI046560@freefall.freebsd.org>

next in thread | raw e-mail | index | archive | help
yar         2002/07/12 08:51:16 PDT

  Modified files:
    libexec/ftpd         ftpd.c 
  Log:
  Use fgetln(3) to read lines from configuration files (ftpusers, ftphosts.)
  Thus lines of any length can be handled, unlike before.
  
  Don't assume that each line read from the files ends with a newline.
  
  As a side effect in inithosts(), don't use automatic buffer at all,
  utilize malloc(3) when getting local host name instead.
  
  PR:             misc/21494
  Reviewed by:    maxim, mikeh
  MFC after:      1 month
  
  Revision  Changes    Path
  1.106     +78 -48    src/libexec/ftpd/ftpd.c

To Unsubscribe: send mail to majordomo@FreeBSD.org
with "unsubscribe cvs-all" in the body of the message




Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?200207121551.g6CFpGjI046560>