openbsd-ports/x11/gtk-theme-switch/patches/patch-switch_c

18 lines
720 B
Plaintext
Raw Normal View History

$OpenBSD: patch-switch_c,v 1.1.1.1 2003/01/14 01:01:19 naddy Exp $
--- switch.c.orig Tue May 28 12:32:34 2002
+++ switch.c Tue May 28 12:32:51 2002
@@ -679,11 +679,11 @@ static short install_tarball (gchar *pat
if (path[0] != '/')
{
gchar *cwd = g_get_current_dir();
- command = g_strdup_printf ("tar --directory %s -xzf %s/%s 2>/dev/null", themedir, cwd, path);
+ command = g_strdup_printf ("tar -C %s -xzf %s/%s 2>/dev/null", themedir, cwd, path);
g_free (cwd);
}
else
- command = g_strdup_printf ("tar --directory %s -xzf %s 2>/dev/null", themedir, path);
+ command = g_strdup_printf ("tar -C %s -xzf %s 2>/dev/null", themedir, path);
/* Ensure that ~/.themes exists */
mkdir (themedir, 755);