ot-main: Ignore lt- prefixes in binary names

libtool is the best

https://bugzilla.gnome.org/show_bug.cgi?id=682438
This commit is contained in:
Jasper St. Pierre committed 2012-10-24 12:20:15 -04:00
1 parent cc4df4f3c2
commit cda5b28bab
1 file changed
+3
+3
View File
@@ -122,6 +122,9 @@ ostree_run (int argc,
else
binname = argv[0];
if (g_str_has_prefix (binname, "lt-"))
binname += 3;
if (g_str_has_prefix (binname, "ostree-"))
{
cmd = strchr (binname, '-');