aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorFabian Groffen <grobian@gentoo.org>2019-06-05 11:14:19 +0200
committerFabian Groffen <grobian@gentoo.org>2019-06-05 11:14:19 +0200
commit85c445dbc0d3526ff2df263f1d48dbc67433cd10 (patch)
tree767cafae6dabfb56f47a4bfb79ef867e4285f016 /qatom.c
parentlibq/hash: fix compilation without HAVE_SSL and HAVE_BLAKE2B (diff)
downloadportage-utils-85c445dbc0d3526ff2df263f1d48dbc67433cd10.tar.gz
portage-utils-85c445dbc0d3526ff2df263f1d48dbc67433cd10.tar.bz2
portage-utils-85c445dbc0d3526ff2df263f1d48dbc67433cd10.zip
libq/atom: retain all input in atom_format_r
Copy the remainder, as well as data before and inbetween expandos. Bug: https://bugs.gentoo.org/687416 Signed-off-by: Fabian Groffen <grobian@gentoo.org>
Diffstat (limited to 'qatom.c')
-rw-r--r--qatom.c5
1 files changed, 3 insertions, 2 deletions
diff --git a/qatom.c b/qatom.c
index 8825055..c7b6ccf 100644
--- a/qatom.c
+++ b/qatom.c
@@ -4,6 +4,7 @@
*
* Copyright 2005-2008 Ned Ludd - <solar@gentoo.org>
* Copyright 2005-2014 Mike Frysinger - <vapier@gentoo.org>
+ * Copyright 2018- Fabian Groffen - <grobian@gentoo.org>
*/
#include "main.h"
@@ -41,9 +42,9 @@ int qatom_main(int argc, char **argv)
while ((i = GETOPT_LONG(QATOM, qatom, "")) != -1) {
switch (i) {
- case 'F': format = optarg; break;
+ case 'F': format = optarg; break;
case 'c': action = _COMPARE; break;
- case 'p': action = _PRINT; break;
+ case 'p': action = _PRINT; break;
COMMON_GETOPTS_CASES(qatom)
}
}