summaryrefslogtreecommitdiff
path: root/rpm.c
diff options
context:
space:
mode:
Diffstat (limited to 'rpm.c')
-rwxr-xr-xrpm.c7
1 files changed, 5 insertions, 2 deletions
diff --git a/rpm.c b/rpm.c
index cd31d4089..9cdb897f7 100755
--- a/rpm.c
+++ b/rpm.c
@@ -830,8 +830,11 @@ int main(int argc, char ** argv) {
rpmDefineMacro(NULL, optArg, RMIL_CMDLINE);
break;
- case GETOPT_PREFIX: /* XXX FIXME */
- argerror(_("--prefix is broke, use --relocate /oldpath=/newpath instead"));
+ case GETOPT_PREFIX:
+ relocations = realloc(relocations,
+ sizeof(*relocations) * (numRelocations + 1));
+ relocations[numRelocations].oldPath = NULL;
+ relocations[numRelocations++].newPath = optArg;
break;
case GETOPT_TIMECHECK: