From owner-cvs-all Thu Jan 4 11: 5:53 2001 From owner-cvs-all@FreeBSD.ORG Thu Jan 4 11:05:50 2001 Return-Path: Delivered-To: cvs-all@freebsd.org Received: from freefall.freebsd.org (freefall.FreeBSD.org [216.136.204.21]) by hub.freebsd.org (Postfix) with ESMTP id 3001537B400; Thu, 4 Jan 2001 11:05:50 -0800 (PST) Received: (from will@localhost) by freefall.freebsd.org (8.11.1/8.11.1) id f04J5ou82617; Thu, 4 Jan 2001 11:05:50 -0800 (PST) (envelope-from will) Message-Id: <200101041905.f04J5ou82617@freefall.freebsd.org> From: Will Andrews Date: Thu, 4 Jan 2001 11:05:49 -0800 (PST) To: cvs-committers@FreeBSD.org, cvs-all@FreeBSD.org Subject: cvs commit: src/usr.bin/apply apply.c X-FreeBSD-CVS-Branch: HEAD Sender: owner-cvs-all@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.ORG will 2001/01/04 11:05:49 PST Modified files: usr.bin/apply apply.c Log: BDECFLAGS; de-__P()-ify, ANSIfy, use snprintf() instead of sprintf(), especially on strings passed from argv; rename system() to exec_shell(), and make it static; use strlcpy() and make sure it works; use proper type (size_t) to be passed to malloc()/realloc(). Use getusershell() to make sure the SHELL environment variable passed is safe to use. Add new option -s to allow anal users to pass things like perl; this option is here along with getusershell() checking since the such checking is only intended to affect things like suidperl that might call apply(1). Reviewed by: markm, jhb, C. Stephen Gunn Revision Changes Path 1.11 +41 -24 src/usr.bin/apply/apply.c To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe cvs-all" in the body of the message