summaryrefslogtreecommitdiff
path: root/src/ostree/ot-main.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/ostree/ot-main.c')
-rw-r--r--src/ostree/ot-main.c8
1 files changed, 8 insertions, 0 deletions
diff --git a/src/ostree/ot-main.c b/src/ostree/ot-main.c
index 56d247b4..5b6e301d 100644
--- a/src/ostree/ot-main.c
+++ b/src/ostree/ot-main.c
@@ -117,6 +117,9 @@ ostree_run (int argc,
OstreeCommand *command;
GError *error = NULL;
GCancellable *cancellable = NULL;
+#ifndef BUILDOPT_TSAN
+ g_autofree char *prgname = NULL;
+#endif
const char *command_name = NULL;
gboolean success = FALSE;
int in, out;
@@ -192,6 +195,11 @@ ostree_run (int argc,
goto out;
}
+#ifndef BUILDOPT_TSAN
+ prgname = g_strdup_printf ("%s %s", g_get_prgname (), command_name);
+ g_set_prgname (prgname);
+#endif
+
if (!command->fn (argc, argv, cancellable, &error))
goto out;