summaryrefslogtreecommitdiff
path: root/rpmio/macro.c
diff options
context:
space:
mode:
authorjbj <devnull@localhost>2004-06-01 13:58:57 +0000
committerjbj <devnull@localhost>2004-06-01 13:58:57 +0000
commit9f035a4d8a924dad4a6e8306844d6831bf7676fd (patch)
tree4ab5ccc361f52b5c7f97f9cb1cae199829242a79 /rpmio/macro.c
parent5aed900edbabdb5600163786f9dbfea33e7351dd (diff)
downloadlibrpm-tizen-9f035a4d8a924dad4a6e8306844d6831bf7676fd.tar.gz
librpm-tizen-9f035a4d8a924dad4a6e8306844d6831bf7676fd.tar.bz2
librpm-tizen-9f035a4d8a924dad4a6e8306844d6831bf7676fd.zip
- fix: "/path/foo.../bar" was losing a dot (#123844).
CVS patchset: 7287 CVS date: 2004/06/01 13:58:57
Diffstat (limited to 'rpmio/macro.c')
-rw-r--r--rpmio/macro.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/rpmio/macro.c b/rpmio/macro.c
index 22bc1c659..94970b081 100644
--- a/rpmio/macro.c
+++ b/rpmio/macro.c
@@ -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;
}