summaryrefslogtreecommitdiff
path: root/rpmkeys.c
diff options
context:
space:
mode:
authorbiao716.wang <biao716.wang@samsung.com>2023-08-28 14:57:22 +0900
committerbiao716.wang <biao716.wang@samsung.com>2023-08-28 14:57:22 +0900
commit0fb104edc1e949fd224866aa900463aa2d6588d0 (patch)
treecdc9ddc3123edd5741e5151f3076c9bfc9535916 /rpmkeys.c
parenta0dea826f88a4c5c9ceb722592cceedeb75a32fe (diff)
downloadlibrpm-tizen-sandbox/wangbiao/rpm414_tizen.tar.gz
librpm-tizen-sandbox/wangbiao/rpm414_tizen.tar.bz2
librpm-tizen-sandbox/wangbiao/rpm414_tizen.zip
Upgrade version to 4.14sandbox/wangbiao/rpm414_tizen
Change-Id: Ifd629ba679a11ede4d831195c6aea2245efc3300 Signed-off-by: biao716.wang <biao716.wang@samsung.com>
Diffstat (limited to 'rpmkeys.c')
-rw-r--r--rpmkeys.c10
1 files changed, 5 insertions, 5 deletions
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;