diff options
author | jbj <devnull@localhost> | 1999-10-29 23:03:12 +0000 |
---|---|---|
committer | jbj <devnull@localhost> | 1999-10-29 23:03:12 +0000 |
commit | 7b4cf4bf196bbc8477fb5aae8a37c56f20c6aaa2 (patch) | |
tree | 28cc9e68bf450e215120326109ef625b02258e50 /rpmio | |
parent | 1e0138188b4887431444d90395be0f2fac5c2db3 (diff) | |
download | rpm-7b4cf4bf196bbc8477fb5aae8a37c56f20c6aaa2.tar.gz rpm-7b4cf4bf196bbc8477fb5aae8a37c56f20c6aaa2.tar.bz2 rpm-7b4cf4bf196bbc8477fb5aae8a37c56f20c6aaa2.zip |
fix: resurrect multiple target platform builds.
CVS patchset: 3404
CVS date: 1999/10/29 23:03:12
Diffstat (limited to 'rpmio')
-rw-r--r-- | rpmio/macro.c | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/rpmio/macro.c b/rpmio/macro.c index 2e650541e..5980ecd3e 100644 --- a/rpmio/macro.c +++ b/rpmio/macro.c @@ -1458,6 +1458,13 @@ rpmGetPath(const char *path, ...) } va_end(ap); expandMacros(NULL, NULL, buf, sizeof(buf)); + + for (s = p = buf; *s; s++, p++) { + while (s[0] == '/' && s[1] == '/') s++; + *p = *s; + } + *p = '\0'; + return xstrdup(buf); } |