projects
/
profile
/
ivi
/
syslinux.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
e8d0e6f
)
pathbased: fix relative path in the extlinux installer
author
Alek Du
<alek.du@intel.com>
Mon, 8 Feb 2010 02:40:09 +0000
(10:40 +0800)
committer
H. Peter Anvin
<hpa@zytor.com>
Thu, 11 Feb 2010 00:00:52 +0000
(16:00 -0800)
Fix a bug in the extlinux installer where the relative path is not
found correctly.
Signed-off-by: Alek Du <alek.du@intel.com>
Signed-off-by: H. Peter Anvin <hpa@zytor.com>
extlinux/main.c
patch
|
blob
|
history
diff --git
a/extlinux/main.c
b/extlinux/main.c
index
2cfb1ea
..
c28f190
100644
(file)
--- 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) {