From owner-freebsd-commit Tue Jan 16 02:32:13 1996 Return-Path: owner-commit Received: (from root@localhost) by freefall.freebsd.org (8.7.3/8.7.3) id CAA03330 for freebsd-commit-outgoing; Tue, 16 Jan 1996 02:32:13 -0800 (PST) Received: (from root@localhost) by freefall.freebsd.org (8.7.3/8.7.3) id CAA03321 for cvs-all-outgoing; Tue, 16 Jan 1996 02:32:10 -0800 (PST) Received: (from root@localhost) by freefall.freebsd.org (8.7.3/8.7.3) id CAA03310 for cvs-usrsbin-outgoing; Tue, 16 Jan 1996 02:32:08 -0800 (PST) Received: (from graichen@localhost) by freefall.freebsd.org (8.7.3/8.7.3) id CAA03303 Tue, 16 Jan 1996 02:32:06 -0800 (PST) Date: Tue, 16 Jan 1996 02:32:06 -0800 (PST) From: Thomas Graichen Message-Id: <199601161032.CAA03303@freefall.freebsd.org> To: CVS-committers, cvs-usrsbin Subject: cvs commit: src/usr.sbin/newsyslog Makefile newsyslog.c Sender: owner-commit@FreeBSD.ORG Precedence: bulk graichen 96/01/16 02:32:05 Modified: usr.sbin/newsyslog Makefile newsyslog.c Log: Submitted by: charnier@lirmm.fr (Philippe Charnier) 1) correct MAX_PID according to system definition. 2) replace fprintf(stderr,...)/perror/exit by 4.4 equivalence. 3) make strings enough larger so they can't overflow: MAXHOSTNAMELEN for host and MAXPATHLEN for filenames. 4) call execl with correct parameters (compress -> gzip). Revision Changes Path 1.2 +3 -2 src/usr.sbin/newsyslog/Makefile 1.3 +48 -80 src/usr.sbin/newsyslog/newsyslog.c