This causes spectacular failures like not finding "rpmq":
$ rpm -qa
rpm: -qa: Invalid argument

Downgrading to popt 1.10_4 again fixed it, will try to
figure out how to make the two co-exist... (rpm/popt)

Found the reason for why it couldn't find any executable:
char *s = malloc(strlen(con->execPath) + strlen(item->argv[0]) + sizeof("/"));
        if (s)
            sprintf(s, "%s/%s", con->execPath, item->argv[-1]);

Changing "argv[-1]" back to "argv[0]" made it work again !
Is this some kind of Darwin vs Linux issue, or just a bug ?

--anders

______________________________________________________________________
POPT Library                                           http://rpm5.org
Developer Communication List                       popt-devel@rpm5.org

Reply via email to