In rpm-4.0.3-0.29, if you run "rpm -q -i -p" and specify an ftp://... URL, it'll core-dump. As far as I can tell, this is the correct fix to this problem. I have no idea why the code that is removed by this fix was there in the first place. Perhaps it's debugging code that someone forgot to remove. With this code in place, uCache can never be initialized, because urlFind always returnes upon discovering that it hasn't been initialized yet. --- rpmio/url.c.orig Fri Jun 1 04:25:25 2001 +++ rpmio/url.c Fri Jun 1 04:28:03 2001 @@ -176,11 +176,6 @@ if (uret == NULL) return; - if (uCache == NULL) { - *uret = NULL; - return; - } - u = *uret; URLSANE(u);
Not debugging, tedious wrestling with lclint output, as rpm is now lclint clean. Better (and functional) fix to shut up lclint in rpm-4.0.3-0.31. Thanks for noticing.