grub-devel
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[PATCH] Fix Cygwin path handling


From: Christian Franke
Subject: [PATCH] Fix Cygwin path handling
Date: Wed, 14 Apr 2010 20:36:13 +0200
User-agent: Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.9.1.8) Gecko/20100205 SeaMonkey/2.0.3

The Cywin path handling is broken since make_system_path_relative_to_its_root() functionality was moved from the lib script to misc.c.

This patch should fix this. It reuses the Cygwin specific code from getroot.c:grub_get_prefix() which apparently is a different implementation of the same function.

I would suggest to remove grub_get_prefix(), it is now only used in grub-emu.c and sparc64/ieee1275/grub-setup.c. Not included in the patch, should be done in a separate commit.


2010-04-14  Christian Franke<address@hidden>

        * util/grub-mkconfig_lib.in (make_system_path_relative_to_its_root):
        Remove broken Cygwin path conversion.
        * util/misc.c: [__CYGWIN__] Add include and define.
        [__CYGWIN__] (get_win32_path): Copy function from getroot.c, modify
        for Cygwin 1.7.
        (make_system_path_relative_to_its_root): Simplify loop, replace early
        return by break.
        [__CYGWIN__] Add conversion to win32 path.



--
Regards,
Christian Franke

Attachment: grub2-cygwin-path.patch
Description: Text Data


reply via email to

[Prev in Thread] Current Thread [Next in Thread]