diff options
author | jbj <devnull@localhost> | 2004-06-01 13:58:57 +0000 |
---|---|---|
committer | jbj <devnull@localhost> | 2004-06-01 13:58:57 +0000 |
commit | 9f035a4d8a924dad4a6e8306844d6831bf7676fd (patch) | |
tree | 4ab5ccc361f52b5c7f97f9cb1cae199829242a79 /rpmio/macro.c | |
parent | 5aed900edbabdb5600163786f9dbfea33e7351dd (diff) | |
download | librpm-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.c | 2 |
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; } |