Received: from mailman by lists.gnu.org with archive (Exim 4.43) id 1GP3Qc-0002RX-I7 for mharc-grub-devel@gnu.org; Sun, 17 Sep 2006 16:39:50 -0400 Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1GP3Qa-0002RJ-Po for grub-devel@gnu.org; Sun, 17 Sep 2006 16:39:48 -0400 Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1GP3QT-0002N7-Iq for grub-devel@gnu.org; Sun, 17 Sep 2006 16:39:48 -0400 Received: from [199.232.76.173] (helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1GP3QT-0002N2-AC for grub-devel@gnu.org; Sun, 17 Sep 2006 16:39:41 -0400 Received: from [69.60.117.155] (helo=aybabtu.com) by monty-python.gnu.org with esmtps (TLS-1.0:RSA_AES_256_CBC_SHA:32) (Exim 4.52) id 1GP3TA-0002tF-3P for grub-devel@gnu.org; Sun, 17 Sep 2006 16:42:28 -0400 Received: from 138.red-62-57-141.user.auna.net ([62.57.141.138] helo=khazad.dyndns.org) by aybabtu.com with esmtps (TLS-1.0:RSA_AES_256_CBC_SHA:32) (Exim 4.63) (envelope-from ) id 1GP3Q3-0001Ep-4I for grub-devel@gnu.org; Sun, 17 Sep 2006 22:39:15 +0200 Received: from rmh by khazad.dyndns.org with local (Exim 4.63) (envelope-from ) id 1GP3QC-0000nq-ND for grub-devel@gnu.org; Sun, 17 Sep 2006 22:39:24 +0200 Date: Sun, 17 Sep 2006 22:39:24 +0200 From: Robert Millan To: grub-devel@gnu.org Message-ID: <20060917203924.GA3073@khazad.dyndns.org> MIME-Version: 1.0 Content-Type: multipart/mixed; boundary="5vNYLRcllDrimb99" Content-Disposition: inline Organization: free as in freedom X-Message-Flag: Microsoft discourages use of Outlook. User-Agent: Mutt/1.5.13 (2006-08-11) Subject: [PATCH] don't abort with error if realpath fails 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, 17 Sep 2006 20:39:49 -0000 --5vNYLRcllDrimb99 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline Please consider (mostly useful to support device.map generated by GRUB legacy): 2006-09-17 Robert Millan * util/i386/pc/biosdisk.c (read_device_map): Don't abort with error if realpath fails (e.g. to cope with missing /dev/fd0 when we're aren't writing to floppy). -- Robert Millan My spam trap is honeypot@aybabtu.com. Note: this address is only intended for spam harvesters. Writing to it will get you added to my black list. --5vNYLRcllDrimb99 Content-Type: text/plain; charset=us-ascii Content-Disposition: attachment; filename="05_dont_error_if_realpath_fails.diff" 2006-09-17 Robert Millan * util/i386/pc/biosdisk.c (read_device_map): Don't abort with error if realpath fails (e.g. to cope with missing /dev/fd0 when we're aren't writing to floppy). Index: util/i386/pc/biosdisk.c =================================================================== RCS file: /sources/grub/grub2/util/i386/pc/biosdisk.c,v retrieving revision 1.12 diff -u -r1.12 biosdisk.c --- util/i386/pc/biosdisk.c 4 Jun 2006 15:56:55 -0000 1.12 +++ util/i386/pc/biosdisk.c 17 Sep 2006 16:29:39 -0000 @@ -556,7 +556,10 @@ symbolic links. */ map[drive] = xmalloc (PATH_MAX); if (! realpath (p, map[drive])) - grub_util_error ("Cannot get the real path of `%s'", p); + { + map[drive] = '\0'; + grub_util_info ("Cannot get the real path of `%s'", p); + } #else map[drive] = xstrdup (p); #endif --5vNYLRcllDrimb99--