summaryrefslogtreecommitdiff
path: root/src/driver/slbt_driver_ctx.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/driver/slbt_driver_ctx.c')
-rw-r--r--src/driver/slbt_driver_ctx.c6
1 files changed, 6 insertions, 0 deletions
diff --git a/src/driver/slbt_driver_ctx.c b/src/driver/slbt_driver_ctx.c
index 4815d34..29caf2c 100644
--- a/src/driver/slbt_driver_ctx.c
+++ b/src/driver/slbt_driver_ctx.c
@@ -916,6 +916,12 @@ int slbt_get_driver_ctx(
nunits++;
}
+ /* -o in install mode means USER */
+ if ((cctx.mode == SLBT_MODE_INSTALL) && cctx.output) {
+ cctx.user = cctx.output;
+ cctx.output = 0;
+ }
+
/* driver context */
if (!(ctx = slbt_driver_ctx_alloc(meta,&cctx,nunits)))
return slbt_get_driver_ctx_fail(meta);