diff options
author | Thomas Wood <thos@gnome.org> | 2006-01-05 19:55:00 +0000 |
---|---|---|
committer | Thomas Wood <thos@src.gnome.org> | 2006-01-05 19:55:00 +0000 |
commit | aaedc8bc94dfbb1cb0a2c0f8ac9f89c8cb13d9e8 (patch) | |
tree | 783788c752e9c7aa3bbdb32ec28a22cc484ff2f6 | |
parent | ad3a2645db73107468fbef414b8ba00c2b2acdeb (diff) | |
download | gnome-control-center-aaedc8bc94dfbb1cb0a2c0f8ac9f89c8cb13d9e8.tar.gz |
reviewed by: Sebastien Bacher
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
-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); |