diff options
author | Thierry Vignaud <thierry.vignaud@gmail.com> | 2012-12-17 13:58:44 +0100 |
---|---|---|
committer | Panu Matilainen <pmatilai@redhat.com> | 2012-12-18 17:53:04 +0200 |
commit | 4365113d537f10ba5229264c9a8cab5d38dcd633 (patch) | |
tree | 1a5a10e7a2649a29189603994e9e516179e75373 /rpmio | |
parent | 7f16ecfe412b9eac0dc18b1a63622999fca0bdc2 (diff) | |
download | rpm-4365113d537f10ba5229264c9a8cab5d38dcd633.tar.gz rpm-4365113d537f10ba5229264c9a8cab5d38dcd633.tar.bz2 rpm-4365113d537f10ba5229264c9a8cab5d38dcd633.zip |
display the actual unknown option instead of '?'
'?' is returned by getopt when option is unknown, making hard to
pinpoint the actual bogus option...
Signed-off-by: Panu Matilainen <pmatilai@redhat.com>
(cherry picked from commit 8192e580a0a962b8eb7f9d8fc07bd3f99ccf0ffe)
Diffstat (limited to 'rpmio')
-rw-r--r-- | rpmio/macro.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/rpmio/macro.c b/rpmio/macro.c index f7954b3d5..5362512f6 100644 --- a/rpmio/macro.c +++ b/rpmio/macro.c @@ -823,7 +823,7 @@ grabArgs(MacroBuf mb, const rpmMacroEntry me, const char * se, char *name = NULL, *body = NULL; if (c == '?' || strchr(opts, c) == NULL) { rpmlog(RPMLOG_ERR, _("Unknown option %c in %s(%s)\n"), - (char)c, me->name, opts); + (char)optopt, me->name, opts); goto exit; } |