All of lore.kernel.org
 help / color / mirror / Atom feed
From: Mario Limonciello <mario_limonciello@dell.com>
To: "grub-devel@gnu.org" <grub-devel@gnu.org>
Subject: [PATCH 3/3] Strip trailing slashes on PHYSICALDRIVE%d paths when making Windows CreateFile calls.
Date: Wed, 21 Sep 2011 15:49:27 -0500	[thread overview]
Message-ID: <4E7A4DD7.9030009@dell.com> (raw)

[-- Attachment #1: Type: text/plain, Size: 884 bytes --]

=== 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 <gregoire.sutre@gmail.com>

=== 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 <windows.h>
  #include <winioctl.h>
+#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);




[-- Warning: decoded text below may be mangled, UTF-8 assumed --]
[-- Attachment #2: ml_3427.patch --]
[-- Type: text/x-diff; name="ml_3427.patch", Size: 856 bytes --]

=== 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  <gregoire.sutre@gmail.com>
 

=== 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 <windows.h>
 #include <winioctl.h>
+#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);
 


             reply	other threads:[~2011-09-21 20:49 UTC|newest]

Thread overview: 2+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2011-09-21 20:49 Mario Limonciello [this message]
2011-09-29  8:40 ` [PATCH 3/3] Strip trailing slashes on PHYSICALDRIVE%d paths when making Windows CreateFile calls Vladimir 'φ-coder/phcoder' Serbinenko

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=4E7A4DD7.9030009@dell.com \
    --to=mario_limonciello@dell.com \
    --cc=grub-devel@gnu.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.