DragonFly BSD
DragonFly commits List (threaded) for 2005-02
[Date Prev][Date Next]  [Thread Prev][Thread Next]  [Date Index][Thread Index]

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


From: Joerg Sonnenberger <joerg@xxxxxxxxxxxxxxxxxxxxxxx>
Date: Tue, 15 Feb 2005 08:32:46 -0800 (PST)

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@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



[Date Prev][Date Next]  [Thread Prev][Thread Next]  [Date Index][Thread Index]