From owner-freebsd-hackers Thu Jan 2 13:36:37 2003 Delivered-To: freebsd-hackers@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 9970F37B401; Thu, 2 Jan 2003 13:36:36 -0800 (PST) Received: from puffin.mail.pas.earthlink.net (puffin.mail.pas.earthlink.net [207.217.120.139]) by mx1.FreeBSD.org (Postfix) with ESMTP id 4786F43E4A; Thu, 2 Jan 2003 13:36:36 -0800 (PST) (envelope-from tlambert2@mindspring.com) Received: from pool0545.cvx40-bradley.dialup.earthlink.net ([216.244.44.35] helo=mindspring.com) by puffin.mail.pas.earthlink.net with asmtp (SSLv3:RC4-MD5:128) (Exim 3.33 #1) id 18UD0z-0003If-00; Thu, 02 Jan 2003 13:36:33 -0800 Message-ID: <3E14B087.EC43701B@mindspring.com> Date: Thu, 02 Jan 2003 13:35:03 -0800 From: Terry Lambert X-Mailer: Mozilla 4.79 [en] (Win98; U) X-Accept-Language: en MIME-Version: 1.0 To: wgrim@siue.edu Cc: phk@FreeBSD.ORG, kientzle@acm.org, freebsd-hackers@FreeBSD.ORG Subject: Re: Reading rc.conf from C programs? References: <4351.1041538966@critter.freebsd.dk> <1041540674.3e14a642d30b5@webmail1.isg.siue.edu> Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit X-ELNK-Trace: b1a02af9316fbb217a47c185c03b154d40683398e744b8a497d34aacdd2dc69f47e88175a60c5503387f7b89c61deb1d350badd9bab72f9c350badd9bab72f9c Sender: owner-freebsd-hackers@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.ORG wgrim@siue.edu wrote: > Well, perhaps I'm missing something here, but can't you just tokenize the items > in rc.conf using strtok after opening up the file in your C program? You are missing something. Someone violated policy, and put shell code into rc.conf, instead of leaving it a name/value pairs. -- Terry To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-hackers" in the body of the message