Skip site navigation (1)Skip section navigation (2)
Date:      Tue, 22 Oct 1996 21:20:37 +0200 (MET DST)
From:      J Wunsch <j@uriah.heep.sax.de>
To:        roberto@keltia.freenix.fr
Cc:        freebsd-bugs@freefall.freebsd.org
Subject:   Re: bin/1863: On systems with setuid 'lpr' and defined printers, lpr breaks root
Message-ID:  <199610221920.VAA18687@uriah.heep.sax.de>
In-Reply-To: <199610221620.JAA08429@freefall.freebsd.org> from Ollivier Robert at "Oct 22, 96 09:20:02 am"

next in thread | previous in thread | raw e-mail | index | archive | help
As Ollivier Robert wrote:

>  Here is a fix which truncate the input string if longer than BUFSIZ. I did
>  not consider it worth dynamic allocation because the strings are supposed
>  to be short in the control file.

I think there's not even a need for a dynamic buffer, the buffer is
written to `ofd' at the end of the function, so you can loop until all
bytes from p2 are written.

-- 
cheers, J"org

joerg_wunsch@uriah.heep.sax.de -- http://www.sax.de/~joerg/ -- NIC: JW11-RIPE
Never trust an operating system you don't have sources for. ;-)



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