- fix: "/path/foo.../bar" was losing a dot (#123844).

CVS patchset: 7287
CVS date: 2004/06/01 13:58:57
This commit is contained in:
jbj 2004-06-01 13:58:57 +00:00
parent 5aed900edb
commit 9f035a4d8a
2 changed files with 2 additions and 1 deletions

View File

@ -6,6 +6,7 @@
4.3.1 -> 4.3.2:
- use /etc/selinux/targeted/contexts/files/file_contexts for now.
- disable file contexts into package metadata during build.
- fix: "/path/foo.../bar" was losing a dot (#123844).
4.3 -> 4.3.1:
- fix: don't add leading space to %* argv expansion (#119059).

View File

@ -2184,7 +2184,7 @@ char *rpmCleanPath(char * path)
/*@switchbreak@*/ break;
}
/* Trim embedded ./ , trailing /. */
if ((t[-1] == '/' && s[1] == '\0') || (t != path && s[1] == '/')) {
if ((t[-1] == '/' && s[1] == '\0') || (t > path && t[-1] == '/' && s[1] == '/')) {
s++;
continue;
}