Blame rpm-debugedit-incremental-fix.patch
|
Paul Nasrat |
fbf185 |
--- rpm-4.4.2/tools/debugedit.c.jj 2007-04-20 21:27:50.000000000 +0200
|
|
Paul Nasrat |
fbf185 |
+++ rpm-4.4.2/tools/debugedit.c 2007-04-20 23:07:27.000000000 +0200
|
|
Paul Nasrat |
fbf185 |
@@ -371,9 +371,10 @@ canonicalize_path (const char *s, char *
|
|
Paul Nasrat |
fbf185 |
|
|
Paul Nasrat |
fbf185 |
if (s[0] == '.' && (s[1] == 0 || IS_DIR_SEPARATOR (s[1])))
|
|
Paul Nasrat |
fbf185 |
{
|
|
Paul Nasrat |
fbf185 |
- s ++;
|
|
Paul Nasrat |
fbf185 |
- if (!*s && d > droot)
|
|
Paul Nasrat |
fbf185 |
- d--;
|
|
Paul Nasrat |
fbf185 |
+ s++;
|
|
Paul Nasrat |
fbf185 |
+ if (*s)
|
|
Paul Nasrat |
fbf185 |
+ while (IS_DIR_SEPARATOR (*s))
|
|
Paul Nasrat |
fbf185 |
+ ++s;
|
|
Paul Nasrat |
fbf185 |
}
|
|
Paul Nasrat |
fbf185 |
|
|
Paul Nasrat |
fbf185 |
else if (s[0] == '.' && s[1] == '.'
|
|
Paul Nasrat |
fbf185 |
@@ -401,8 +402,6 @@ canonicalize_path (const char *s, char *
|
|
Paul Nasrat |
fbf185 |
if (*s)
|
|
Paul Nasrat |
fbf185 |
while (IS_DIR_SEPARATOR (*s))
|
|
Paul Nasrat |
fbf185 |
s++;
|
|
Paul Nasrat |
fbf185 |
- else if (d > droot)
|
|
Paul Nasrat |
fbf185 |
- d--;
|
|
Paul Nasrat |
fbf185 |
}
|
|
Paul Nasrat |
fbf185 |
}
|
|
Paul Nasrat |
fbf185 |
else
|
|
Paul Nasrat |
fbf185 |
@@ -411,7 +410,6 @@ canonicalize_path (const char *s, char *
|
|
Paul Nasrat |
fbf185 |
*d++ = *s++;
|
|
Paul Nasrat |
fbf185 |
}
|
|
Paul Nasrat |
fbf185 |
}
|
|
Paul Nasrat |
fbf185 |
-
|
|
Paul Nasrat |
fbf185 |
else
|
|
Paul Nasrat |
fbf185 |
{
|
|
Paul Nasrat |
fbf185 |
while (*s && ! IS_DIR_SEPARATOR (*s))
|