summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorewt <devnull@localhost>1997-05-07 19:43:23 +0000
committerewt <devnull@localhost>1997-05-07 19:43:23 +0000
commitbd1ece83f25672ef7dfbbe5895a40f0a178bfa87 (patch)
tree260a4132857a0657bafcb29ba9ecf9d82bac7d36
parent49a247317a3b5a31f2a3f8a0ebe867aae78de077 (diff)
downloadlibrpm-tizen-bd1ece83f25672ef7dfbbe5895a40f0a178bfa87.tar.gz
librpm-tizen-bd1ece83f25672ef7dfbbe5895a40f0a178bfa87.tar.bz2
librpm-tizen-bd1ece83f25672ef7dfbbe5895a40f0a178bfa87.zip
= didn't work w/ long arguments
CVS patchset: 1615 CVS date: 1997/05/07 19:43:23
-rw-r--r--CHANGES1
-rw-r--r--popt/popt.c2
2 files changed, 2 insertions, 1 deletions
diff --git a/CHANGES b/CHANGES
index efb20eb21..7d84f02b3 100644
--- a/CHANGES
+++ b/CHANGES
@@ -31,6 +31,7 @@
- include <strings.h> on SCO
- don't use cpio when installing packages <gulp>
- fixed bug which affected dependencies on the Alpha
+ - made '=' work for long arguments (the switch to popt broke this)
2.3.10 -> 2.3.11:
- fixed newlines in --scripts output
diff --git a/popt/popt.c b/popt/popt.c
index 143c2e72c..b9bac7eab 100644
--- a/popt/popt.c
+++ b/popt/popt.c
@@ -134,7 +134,7 @@ int poptGetNextOpt(poptContext con) {
chptr = optString;
while (*chptr && *chptr != '=') chptr++;
if (*chptr == '=') {
- longArg = origOptString + (chptr - localOptString);
+ longArg = origOptString + (chptr - localOptString) + 1;
*chptr = '\0';
}