$OpenBSD: patch-src_archive_c,v 1.3 2009/01/26 10:20:39 jasper Exp $ Fix GNU-ism unsupported by our tar(1). --- src/archive.c.orig Mon Jan 26 11:15:29 2009 +++ src/archive.c Mon Jan 26 11:16:04 2009 @@ -171,20 +171,19 @@ static gchar* install_theme_to(const gchar *file, cons GError *e = NULL; gchar *name = NULL; - glob = g_strdup_printf("*/openbox-3/", name); + glob = g_strdup_printf("*/openbox-3/*", name); - argv = g_new(gchar*, 11); + argv = g_new(gchar*, 10); argv[0] = g_strdup("tar"); argv[1] = g_strdup("-x"); argv[2] = g_strdup("-v"); argv[3] = g_strdup("-z"); - argv[4] = g_strdup("--wildcards"); - argv[5] = g_strdup("-f"); - argv[6] = g_strdup(file); - argv[7] = g_strdup("-C"); - argv[8] = g_strdup(to); - argv[9] = g_strdup(glob); - argv[10] = NULL; + argv[4] = g_strdup("-f"); + argv[5] = g_strdup(file); + argv[6] = g_strdup("-C"); + argv[7] = g_strdup(to); + argv[8] = g_strdup(glob); + argv[9] = NULL; if (!g_spawn_sync(NULL, argv, NULL, G_SPAWN_SEARCH_PATH, NULL, NULL, &outtxt, &errtxt, &exitcode, &e)) gtk_msg(GTK_MESSAGE_ERROR, _("Unable to run the \"tar\" command: %s"),