Репозиторий Sisyphus
Последнее обновление: 28 июня 2022 | Пакетов: 17495 | Посещений: 24467114
en ru br
Репозитории ALT
S:2.24.4-alt12
5.1: 2.24.4-alt0.M50P.1
4.1: 2.22.0-alt1.1
4.0: 2.16.3-alt3
3.0: 1.0.5-alt7.1
www.altlinux.org/Changes

Группа :: Система/Библиотеки
Пакет: gnome-vfs

 Главная   Изменения   Спек   Патчи   Sources   Загрузить   Gear   Bugs and FR  Repocop 

Патч: gnome-vfs-2.24.xx-utf8-mounts.patch
Скачать


 gnome-vfs-daemon reads /proc/mounts at startup and uses HAL via
 libhal_drive_from_device_file() in multiple places in gnome-vfs-hal-mounts.c
 Strings in DBUS must be valid UTF8. If the device path is not valid UTF8, 
 dbus_connection_send() will cause a disconnect of the caller and an exit.
 Threfore if the device path contains invalid utf8, gnome-vfs-daemon will fail
 to start. If that happens during a session, gnome-vfs-daemon will be restarted
 by any gnome application wich cause a lot of start/stop of gnome-vfs-daemon.
 The following patch simply ensures that we use valid utf8 for device path to
 avoid problems with hal/dbus.
 Olivier Fourdan <ofourdan@redhat.com>
 gnome-vfs-volume-monitor-daemon.c |    2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
diff -up gnome-vfs-2.16.2/libgnomevfs/gnome-vfs-volume-monitor-daemon.c.utf8-mount gnome-vfs-2.16.2/libgnomevfs/gnome-vfs-volume-monitor-daemon.c
--- gnome-vfs-2.16.2/libgnomevfs/gnome-vfs-volume-monitor-daemon.c.utf8-mount	2009-07-07 06:10:24.000000000 -0400
+++ gnome-vfs-2.16.2/libgnomevfs/gnome-vfs-volume-monitor-daemon.c	2009-07-07 06:10:34.000000000 -0400
@@ -874,7 +874,7 @@ create_vol_from_mount (GnomeVFSVolumeMon
 	vol = g_object_new (GNOME_VFS_TYPE_VOLUME, NULL);
 
 	vol->priv->volume_type = GNOME_VFS_VOLUME_TYPE_MOUNTPOINT;
-	vol->priv->device_path = g_strdup (mount->device_path);
+	vol->priv->device_path = make_utf8 (mount->device_path);
 	vol->priv->unix_device = 0;  /* Caller must fill in.  */
 	vol->priv->activation_uri = gnome_vfs_get_uri_from_local_path (mount->mount_path);
 	vol->priv->filesystem_type = g_strdup (mount->filesystem_type);
 
дизайн и разработка: Vladimir Lettiev aka crux © 2004-2005, Andrew Avramenko aka liks © 2007-2008
текущий майнтейнер: Michael Shigorin