diff options
-rw-r--r-- | ChangeLog | 8 | ||||
-rw-r--r-- | capplets/theme-switcher/gnome-theme-installer.c | 4 |
2 files changed, 10 insertions, 2 deletions
@@ -1,3 +1,11 @@ +2006-01-05 Thomas Wood <thos@gnome.org> + + reviewed by: Sebastien Bacher + + * capplets/theme-switcher/gnome-theme-installer.c: + (transfer_done_cb): Use `head -n 1` instead of `head -1`. + Fixes bug 316800 + 2006-01-03 Rodrigo Moya <rodrigo@novell.com> * configure.in: diff --git a/capplets/theme-switcher/gnome-theme-installer.c b/capplets/theme-switcher/gnome-theme-installer.c index 2925335c9..458660a2b 100644 --- a/capplets/theme-switcher/gnome-theme-installer.c +++ b/capplets/theme-switcher/gnome-theme-installer.c @@ -209,13 +209,13 @@ transfer_done_cb (GtkWidget *dlg, gchar *path) if (path && len > 7 && ( (!strcmp (path + len - 7, ".tar.gz")) || (!strcmp (path + len - 4, ".tgz")) )) { filename = g_shell_quote (path); - command = g_strdup_printf ("sh -c '/bin/gzip -d -c < \"%s\" | /bin/tar ft - | head -1'", + command = g_strdup_printf ("sh -c '/bin/gzip -d -c < \"%s\" | /bin/tar ft - | head -n 1'", filename); theme_props->filetype=TARGZ; g_free (filename); } else if (path && len > 8 && !strcmp (path + len - 8, ".tar.bz2")) { filename = g_shell_quote (path); - command = g_strdup_printf ("sh -c '/usr/bin/bzip2 -d -c < \"%s\" | /bin/tar ft - | head -1'", + command = g_strdup_printf ("sh -c '/usr/bin/bzip2 -d -c < \"%s\" | /bin/tar ft - | head -n 1'", filename); theme_props->filetype=TARBZ; g_free (filename); |