cvs commit: src/usr.sbin/lpr/lpc lpc.c

Xin LI delphij at FreeBSD.org
Tue Feb 22 02:54:36 GMT 2005


delphij     2005-02-22 02:54:36 UTC

  FreeBSD src repository

  Modified files:        (Branch: RELENG_5)
    usr.sbin/lpr/lpc     lpc.c 
  Log:
  MFC revision 1.29
  date: 2005/02/15 10:23:01;  author: delphij;  state: Exp;  lines: +1 -1
  Be more careful when doing el_parse() - only do it when el is
  properly initialized, that happens when lpc is called from a tty.
  Without this change, it's possible to get SIGSEGV simply doing:
          echo "..:" | lpc
  
  Reported by:    Wojciech A. Koszek <dunstan at freebsd czest pl>
  PR:             77462 (patch rewritten by myself)
  MFC After:      1 week
  
  Revision  Changes    Path
  1.28.4.1  +1 -1      src/usr.sbin/lpr/lpc/lpc.c


More information about the cvs-all mailing list