From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from list by lists.gnu.org with archive (Exim 4.71) id 1R6TjO-0004eP-6i for mharc-grub-devel@gnu.org; Wed, 21 Sep 2011 16:49:22 -0400 Received: from eggs.gnu.org ([140.186.70.92]:44291) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1R6TjL-0004bw-UW for grub-devel@gnu.org; Wed, 21 Sep 2011 16:49:21 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1R6TjK-0006Hy-9M for grub-devel@gnu.org; Wed, 21 Sep 2011 16:49:19 -0400 Received: from ausxippc101.us.dell.com ([143.166.85.207]:1745) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1R6TjK-0006He-5v for grub-devel@gnu.org; Wed, 21 Sep 2011 16:49:18 -0400 X-Loopcount0: from 10.9.160.253 Message-ID: <4E7A4DD7.9030009@dell.com> Date: Wed, 21 Sep 2011 15:49:27 -0500 From: Mario Limonciello Organization: Dell Inc. User-Agent: Mozilla/5.0 (X11; Linux i686; rv:6.0.2) Gecko/20110906 Thunderbird/6.0.2 MIME-Version: 1.0 To: "grub-devel@gnu.org" Subject: [PATCH 3/3] Strip trailing slashes on PHYSICALDRIVE%d paths when making Windows CreateFile calls. Content-Type: multipart/mixed; boundary="------------070601030306070906080309" X-detected-operating-system: by eggs.gnu.org: Genre and OS details not recognized. X-Received-From: 143.166.85.207 X-BeenThere: grub-devel@gnu.org X-Mailman-Version: 2.1.14 Precedence: list Reply-To: The development of GNU GRUB List-Id: The development of GNU GRUB List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 21 Sep 2011 20:49:21 -0000 This is a multi-part message in MIME format. --------------070601030306070906080309 Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 8bit === modified file 'ChangeLog' --- ChangeLog 2011-09-21 20:38:06 +0000 +++ ChangeLog 2011-09-21 20:39:06 +0000 @@ -2,6 +2,8 @@ * Remove extra declaration of sleep for mingw32. * No realpath on mingw32. Instead use _fullpath. + * Strip trailing slashes on PHYSICALDRIVE%d paths when making + Windows CreateFile calls. 2011-09-17 Grégoire Sutre === modified file 'util/misc.c' --- util/misc.c 2011-09-21 20:36:50 +0000 +++ util/misc.c 2011-09-21 20:39:06 +0000 @@ -55,6 +55,7 @@ #ifdef __MINGW32__ #include #include +#include "dirname.h" #endif #ifdef GRUB_UTIL @@ -322,6 +323,7 @@ HANDLE hd; grub_int64_t size = -1LL; + strip_trailing_slashes(name); hd = CreateFile (name, GENERIC_READ, FILE_SHARE_READ | FILE_SHARE_WRITE, 0, OPEN_EXISTING, 0, 0); --------------070601030306070906080309 Content-Type: text/x-diff; name="ml_3427.patch" Content-Transfer-Encoding: 8bit Content-Disposition: attachment; filename="ml_3427.patch" === modified file 'ChangeLog' --- ChangeLog 2011-09-21 20:38:06 +0000 +++ ChangeLog 2011-09-21 20:39:06 +0000 @@ -2,6 +2,8 @@ * Remove extra declaration of sleep for mingw32. * No realpath on mingw32. Instead use _fullpath. + * Strip trailing slashes on PHYSICALDRIVE%d paths when making + Windows CreateFile calls. 2011-09-17 Grégoire Sutre === modified file 'util/misc.c' --- util/misc.c 2011-09-21 20:36:50 +0000 +++ util/misc.c 2011-09-21 20:39:06 +0000 @@ -55,6 +55,7 @@ #ifdef __MINGW32__ #include #include +#include "dirname.h" #endif #ifdef GRUB_UTIL @@ -322,6 +323,7 @@ HANDLE hd; grub_int64_t size = -1LL; + strip_trailing_slashes(name); hd = CreateFile (name, GENERIC_READ, FILE_SHARE_READ | FILE_SHARE_WRITE, 0, OPEN_EXISTING, 0, 0); --------------070601030306070906080309--