Received: from mailman by lists.gnu.org with archive (Exim 4.43) id 1Mh4Jb-0007ug-Vm for mharc-grub-devel@gnu.org; Fri, 28 Aug 2009 12:28:40 -0400 Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1Mh4Ja-0007sa-I0 for grub-devel@gnu.org; Fri, 28 Aug 2009 12:28:38 -0400 Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1Mh4JV-0007ls-Up for grub-devel@gnu.org; Fri, 28 Aug 2009 12:28:38 -0400 Received: from [199.232.76.173] (port=39144 helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1Mh4JV-0007lY-JL for grub-devel@gnu.org; Fri, 28 Aug 2009 12:28:33 -0400 Received: from xvm-190-8.ghst.net ([217.70.190.8]:37267 helo=aybabtu.com) by monty-python.gnu.org with esmtps (TLS-1.0:RSA_AES_256_CBC_SHA1:32) (Exim 4.60) (envelope-from ) id 1Mh4JU-0004It-0p for grub-devel@gnu.org; Fri, 28 Aug 2009 12:28:32 -0400 Received: from [192.168.10.10] (helo=localhost) by aybabtu.com with esmtp (Exim 4.69) (envelope-from ) id 1Mh4JR-000355-9i for grub-devel@gnu.org; Fri, 28 Aug 2009 18:28:29 +0200 Received: from rmh by localhost with local (Exim 4.69) (envelope-from ) id 1Mh4JQ-0003vS-PG for grub-devel@gnu.org; Fri, 28 Aug 2009 18:28:28 +0200 Date: Fri, 28 Aug 2009 18:28:28 +0200 From: Robert Millan To: The development of GRUB 2 Message-ID: <20090828162828.GB14976@thorin> References: <1251463992.2547.24.camel@fz.local> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <1251463992.2547.24.camel@fz.local> Organization: free as in freedom X-Message-Flag: Worried about Outlook viruses? Switch to Thunderbird! www.mozilla.com/thunderbird X-Debbugs-No-Ack: true User-Agent: Mutt/1.5.18 (2008-05-17) X-detected-operating-system: by monty-python.gnu.org: GNU/Linux 2.6 (newer, 3) Subject: Re: [PATH] grub-mkrelpath 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: Fri, 28 Aug 2009 16:28:39 -0000 On Fri, Aug 28, 2009 at 02:53:12PM +0200, Felix Zielcke wrote: > + if (stat (buf, &st) < 0) > + grub_util_error ("can not stat %s", buf); We should give a reason. E.g: grub_util_error ("can not stat %s: %s", p, strerror (errno)); Also, I believe some of the comments in the old shell function (e.g. the one about trailing slash) would still make sense in the new one. If you can fix these two things, it looks ok for commit. Thanks. -- Robert Millan The DRM opt-in fallacy: "Your data belongs to us. We will decide when (and how) you may access your data; but nobody's threatening your freedom: we still allow you to remove your data and not access it at all."