Skip site navigation (1)Skip section navigation (2)
Date:      Thu, 2 Jan 2003 02:19:43 -0800 (PST)
From:      Thomas Quinot <thomas@FreeBSD.org>
To:        cvs-committers@FreeBSD.org, cvs-all@FreeBSD.org
Subject:   cvs commit: src/lib/libc/gen getcap.c
Message-ID:  <200301021019.h02AJhHC090011@repoman.freebsd.org>

next in thread | raw e-mail | index | archive | help
thomas      2003/01/02 02:19:43 PST

  Modified files:
    lib/libc/gen         getcap.c 
  Log:
  In cgetmatch(3), return -1 if a NULL or 0-length name parameter is used.
  This situation most notably arises in chkprintcap, when a /etc/printcap
  entry has an empty rp= attribute. In that case, cgetmatch would enter
  an infinite loop if any entry in the file has multiple names.
  
  This causes lpd to hang at boot time on 5.0-DP2 when both conditions
  are met (:rp=: and multiple names -- not necessarily on the same entry).
  
  Reviewed by:    roberto
  
  Revision  Changes    Path
  1.19      +3 -0      src/lib/libc/gen/getcap.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?200301021019.h02AJhHC090011>