- API: change rpmProblem typedef to pass by reference, not value.
- unify rpmError and rpmMessge interfaces through rpmlog.
- collect and display rpm build error messages at end of build.
+ - don't trim leading ./ in rpmCleanPath() (#14961).
3.0.6 -> 4.0
- use DIRNAMES/BASENAMES/DIRINDICES not FILENAMES in packages and db.
if (t == path && s[1] == '\0') {
break;
}
- /* Trim leading ./ , embedded ./ , trailing /. */
- if ((t == path || t[-1] == '/') && (s[1] == '/' || s[1] == '\0')) {
-/*fprintf(stderr, "*** Trim leading ./ , embedded ./ , trailing /.\n"); */
+#if 0 /* Trim leading ./ , embedded ./ , trailing /. */
+ if ((t == path || t[-1] == '/') && (s[1] == '/' || s[1] == '\0'))
+#else /* Trim embedded ./ , trailing /. */
+ if ((t[-1] == '/' && s[1] == '\0') || (t != path && s[1] == '/'))
+#endif
+ {
s++;
continue;
}