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

Joerg Sonnenberger joerg at crater.dragonflybsd.org
Tue Feb 15 08:33:50 PST 2005


joerg       2005/02/15 08:32:46 PST

DragonFly src repository

  Modified files:
    usr.sbin/lpr/lpc     lpc.c 
  Log:
  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)
  
  lpc.c, 1.29
  Obtained-from:	FreeBSD
  Submitted-by:	Xin Li (delphij at freebsd)
  
  Revision  Changes    Path
  1.5       +1 -1      src/usr.sbin/lpr/lpc/lpc.c


http://www.dragonflybsd.org/cvsweb/src/usr.sbin/lpr/lpc/lpc.c.diff?r1=1.4&r2=1.5&f=u





More information about the Commits mailing list