Received: from mailman by lists.gnu.org with archive (Exim 4.43) id 1MXipT-0003cc-Jc for mharc-grub-devel@gnu.org; Sun, 02 Aug 2009 17:42:55 -0400 Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1MXipR-0003c9-Gy for grub-devel@gnu.org; Sun, 02 Aug 2009 17:42:53 -0400 Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1MXipM-0003a6-4n for grub-devel@gnu.org; Sun, 02 Aug 2009 17:42:52 -0400 Received: from [199.232.76.173] (port=51918 helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1MXipL-0003a3-Uo for grub-devel@gnu.org; Sun, 02 Aug 2009 17:42:47 -0400 Received: from mail-fx0-f226.google.com ([209.85.220.226]:33024) by monty-python.gnu.org with esmtp (Exim 4.60) (envelope-from ) id 1MXipL-0006tg-JB for grub-devel@gnu.org; Sun, 02 Aug 2009 17:42:47 -0400 Received: by fxm26 with SMTP id 26so500505fxm.42 for ; Sun, 02 Aug 2009 14:42:46 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:mime-version:received:in-reply-to:references :date:message-id:subject:from:to:content-type :content-transfer-encoding; bh=I7fQqCUHfOLMQwdiCpc83Ye4yle/XotQTp8US1isu5w=; b=mC0fvySyxQ3Z9NwP9VDLhybKYgdn4lH0gpU8VMSOFS/EPD6M6w28X9RtzgAY6vG1OG DX8Ad0aqVJPfysHbANqSu6lv6xo8Eo14VFPLdmtFQbNp7GWmTo5q+/ssZiSHYz3hYsdb WMUzjJeavIeiej4x4mIw2X20wf1N9+YLwK6DI= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=mime-version:in-reply-to:references:date:message-id:subject:from:to :content-type:content-transfer-encoding; b=ZOhms3Qg4tzNObEWN03M4Gbh/M/AG2NbVV87vx5icy+ik6ROYSmOLWgenDtSFHXO5v rHYp76mjjfitoQmgGxWQXbh9WljDTa2OdMo11Q+fmalb+DazQp58JEtfyDvwtSgwd0r4 foo7D23DuZpYERxQCcU9eE6E1n6kKMxzT4Rrs= MIME-Version: 1.0 Received: by 10.204.121.131 with SMTP id h3mr6988465bkr.172.1249249363228; Sun, 02 Aug 2009 14:42:43 -0700 (PDT) In-Reply-To: <20090802213836.GD15139@thorin> References: <20090801143415.GD22989@thorin> <20090801150529.GD23133@thorin> <20090802213836.GD15139@thorin> Date: Sun, 2 Aug 2009 23:42:43 +0200 Message-ID: From: "Vladimir 'phcoder' Serbinenko" To: The development of GRUB 2 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable X-detected-operating-system: by monty-python.gnu.org: GNU/Linux 2.6 (newer, 2) Subject: Re: [RFC] Don't pass filename in multiboot command line X-BeenThere: grub-devel@gnu.org X-Mailman-Version: 2.1.5 Precedence: list Reply-To: The development of GRUB 2 List-Id: The development of GRUB 2 List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sun, 02 Aug 2009 21:42:53 -0000 >> No. Now we have an extra element that is always present and we want to >> remove but when we remove command line can be empty and code must >> handle it correctly. > > Please try this patch. I haven't tried it because I know it will fail if someone does multiboot /payload Then cmdline_argc =3D 0; At the end of the loop p=3Dcmdline; and *(--p) =3D 0 will overwrite an unrelated byte and cmdline pointer will be the same as boot_loader_name pointer and payload will recieve "GRUB 1.96" as command line > > -- > Robert Millan > > =A0The DRM opt-in fallacy: "Your data belongs to us. We will decide when = (and > =A0how) you may access your data; but nobody's threatening your freedom: = we > =A0still allow you to remove your data and not access it at all." > > _______________________________________________ > Grub-devel mailing list > Grub-devel@gnu.org > http://lists.gnu.org/mailman/listinfo/grub-devel > > --=20 Regards Vladimir 'phcoder' Serbinenko Personal git repository: http://repo.or.cz/w/grub2/phcoder.git