From owner-freebsd-bugs Sat Jan 26 9:40:16 2002 Delivered-To: freebsd-bugs@hub.freebsd.org Received: from freefall.freebsd.org (freefall.FreeBSD.org [216.136.204.21]) by hub.freebsd.org (Postfix) with ESMTP id 9358337B400 for ; Sat, 26 Jan 2002 09:40:08 -0800 (PST) Received: (from gnats@localhost) by freefall.freebsd.org (8.11.6/8.11.6) id g0QHe8r07531; Sat, 26 Jan 2002 09:40:08 -0800 (PST) (envelope-from gnats) Date: Sat, 26 Jan 2002 09:40:08 -0800 (PST) Message-Id: <200201261740.g0QHe8r07531@freefall.freebsd.org> To: freebsd-bugs@FreeBSD.org Cc: From: Giorgos Keramidas Subject: Re: misc/34270: man -k could be used to execute any command. Reply-To: Giorgos Keramidas Sender: owner-freebsd-bugs@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.org The following reply was made to PR misc/34270; it has been noted by GNATS. From: Giorgos Keramidas To: "Crist J. Clark" Cc: bug-followup@freebsd.org Subject: Re: misc/34270: man -k could be used to execute any command. Date: Sat, 26 Jan 2002 18:18:17 +0200 (EET) Crist J. Clark wrote: > Since they can only execute commands with their own privileges. > > But this is still not a Good Thing. system(3) bad. system(3) very, > very bad. It should probably be turned into an execvp(2). Agreed. I don't like system() at all either. The gnu/usr.bin/man source though seems to use it in more than a few places. I'll try replacing system() with execlp() or execvp() tonight in all of gnu/usr.bin/man/. - Giorgos To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-bugs" in the body of the message