29 lines
898 B
Diff
29 lines
898 B
Diff
https://bugzilla.novell.com/show_bug.cgi?id=366455
|
|
|
|
Fix a crash when changing ownership of a file.
|
|
Patch taken from upstream svn.
|
|
|
|
--- trunk/src/file-manager/fm-properties-window.c 2008/02/25 15:12:35 13817
|
|
+++ trunk/src/file-manager/fm-properties-window.c 2008/03/12 10:22:11 13928
|
|
@@ -1924,7 +1924,8 @@
|
|
|
|
static void
|
|
owner_change_callback (NautilusFile *file,
|
|
- GError *error,
|
|
+ GFile *result_location,
|
|
+ GError *error,
|
|
FMPropertiesWindow *window)
|
|
{
|
|
char *owner;
|
|
@@ -2067,7 +2068,9 @@
|
|
g_assert (NAUTILUS_IS_FILE (file));
|
|
|
|
owner_text = combo_box_get_active_entry (combo_box, 0);
|
|
- name_array = g_strsplit (owner_text, " - ", 2);
|
|
+ if (! owner_text)
|
|
+ return;
|
|
+ name_array = g_strsplit (owner_text, " - ", 2);
|
|
new_owner = name_array[0];
|
|
g_free (owner_text);
|
|
cur_owner = nautilus_file_get_owner_name (file);
|