From 0fb104edc1e949fd224866aa900463aa2d6588d0 Mon Sep 17 00:00:00 2001 From: "biao716.wang" Date: Mon, 28 Aug 2023 14:57:22 +0900 Subject: Upgrade version to 4.14 Change-Id: Ifd629ba679a11ede4d831195c6aea2245efc3300 Signed-off-by: biao716.wang --- rpmkeys.c | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) (limited to 'rpmkeys.c') diff --git a/rpmkeys.c b/rpmkeys.c index fa4e4d865..2b60a729e 100644 --- a/rpmkeys.c +++ b/rpmkeys.c @@ -5,10 +5,6 @@ #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), @@ -49,10 +45,14 @@ static struct poptOption optionsTable[] = { 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; -- cgit v1.2.3