#include "cliutils.h"
#include "debug.h"
-#if !defined(__GLIBC__) && !defined(__APPLE__)
-char ** environ = NULL;
-#endif
-
enum modes {
MODE_CHECKSIG = (1 << 0),
MODE_IMPORTKEY = (1 << 1),
int main(int argc, char *argv[])
{
int ec = EXIT_FAILURE;
- poptContext optCon = rpmcliInit(argc, argv, optionsTable);
+ poptContext optCon = NULL;
rpmts ts = rpmtsCreate();
ARGV_const_t args = NULL;
+
+ xsetprogname(argv[0]); /* Portability call -- see system.h */
+ optCon = rpmcliInit(argc, argv, optionsTable);
+
if (argc < 2) {
printUsage(optCon, stderr, 0);
goto exit;