[syslinux:pathbased] pathbased: fix relative path in the extlinux installer
syslinux-bot for Alek Du
alek.du at intel.com
Wed Feb 10 16:06:09 PST 2010
Commit-ID: 7c503d3286ce0b562ef075480029338556b306d7
Gitweb: http://syslinux.zytor.com/commit/7c503d3286ce0b562ef075480029338556b306d7
Author: Alek Du <alek.du at intel.com>
AuthorDate: Mon, 8 Feb 2010 10:40:09 +0800
Committer: H. Peter Anvin <hpa at zytor.com>
CommitDate: Wed, 10 Feb 2010 16:00:52 -0800
pathbased: fix relative path in the extlinux installer
Fix a bug in the extlinux installer where the relative path is not
found correctly.
Signed-off-by: Alek Du <alek.du at intel.com>
Signed-off-by: H. Peter Anvin <hpa at zytor.com>
---
extlinux/main.c | 2 +-
1 files changed, 1 insertions(+), 1 deletions(-)
diff --git a/extlinux/main.c b/extlinux/main.c
index 2cfb1ea..c28f190 100644
--- a/extlinux/main.c
+++ b/extlinux/main.c
@@ -386,7 +386,7 @@ int patch_file_and_bootblock(int fd, const char *dir, int devfd)
}
subpath = strchr(dirpath, '\0');
- while (--subpath > dirpath) {
+ while (--subpath >= dirpath) {
if (*subpath == '/') {
*subpath = '\0';
if (lstat(dirpath, &xdst) || dirst.st_dev != xdst.st_dev) {
More information about the Syslinux-commits
mailing list