Skip site navigation (1)Skip section navigation (2)
Date:      Fri, 9 Oct 1998 03:40:04 -0700 (PDT)
From:      "Dag-Erling C. Sm\xf8rgrav" <des@FreeBSD.ORG>
To:        cvs-committers@FreeBSD.ORG, cvs-all@FreeBSD.ORG
Subject:   cvs commit: src/usr.bin/head head.c
Message-ID:  <199810091040.DAA01337@freefall.freebsd.org>

next in thread | raw e-mail | index | archive | help
des         1998/10/09 03:40:04 PDT

  Modified files:        (Branch: RELENG_2_2)
    usr.bin/head         head.c 
  Log:
  MFC: fread() returns 0 on eof or error, not EOF. This fixes the
  following bug:
  
    "head -c <n>" never exit and loops forever (until it is killed),
    if the input stream has fewer bytes than specified (n).
  
  PR:		bin/8225
  Submitted-by:	FUJIMOTO Kensaku <fujimoto@oscar.elec.waseda.ac.jp>
  
  Revision  Changes    Path
  1.3.2.4   +2 -2      src/usr.bin/head/head.c



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