From mboxrd@z Thu Jan 1 00:00:00 1970 From: Greg KH Date: Thu, 11 Mar 2004 01:41:34 +0000 Subject: Re: [PATCH] cleanup callout fork Message-Id: <20040311014134.GI13045@kroah.com> List-Id: References: <20040310235535.GA31657@vrfy.org> In-Reply-To: <20040310235535.GA31657@vrfy.org> MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit To: linux-hotplug@vger.kernel.org On Thu, Mar 11, 2004 at 12:55:35AM +0100, Kay Sievers wrote: > Here I change the callout fork logic. > The current cersion is unable to read a pipe which is not flushed at once, > Now we read until it's closed. Nice. > The maximum argument count is calculated by the strlen now. We have 100 > chars for our result buffer so we can't have more than 50 parameters. > So it's much more clear what will happen now and not some magic boundary > where we use shell behind it. > > Parameter can be combined to one by using apostrophes. > > this on works now: > BUS="scsi", PROGRAM="/bin/sh -c 'echo foo3 foo4 foo5 foo6 foo7 foo8 foo9 | sed s/foo9/bar9/'", KERNEL="sda3", NAME="%c{7}" Very nice. Even if it does allow people to abuse the PROGRAM field :) > Two new test are also added. Applied, thanks. greg k-h ------------------------------------------------------- This SF.Net email is sponsored by: IBM Linux Tutorials Free Linux tutorial presented by Daniel Robbins, President and CEO of GenToo technologies. Learn everything from fundamentals to system administration.http://ads.osdn.com/?ad_id70&alloc_id638&op=click _______________________________________________ Linux-hotplug-devel mailing list http://linux-hotplug.sourceforge.net Linux-hotplug-devel@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/linux-hotplug-devel