Группа :: Звук
Пакет: xmms
Главная Изменения Спек Патчи Загрузить Bugs and FR
Патч: xmms-1.2.9-alt-socketpath.patch
diff -Naur xmms-1.2.9-orig/libxmms/xmmsctrl.c xmms-1.2.9/libxmms/xmmsctrl.c
--- xmms-1.2.9-orig/libxmms/xmmsctrl.c 2003-12-07 04:06:42 +0200
+++ xmms-1.2.9/libxmms/xmmsctrl.c 2004-01-29 09:18:41 +0200
@@ -276,7 +276,7 @@
stored_uid = getuid();
euid = geteuid();
setuid(euid);
- g_snprintf(saddr.sun_path, 108, "%s/xmms_%s.%d", g_get_tmp_dir(), g_get_user_name(), session);
+ g_snprintf(saddr.sun_path, 108, "%s/.xmms/xmms_%s.%d", g_get_home_dir(), g_get_user_name(), session);
setreuid(stored_uid, euid);
if (connect(fd, (struct sockaddr *) &saddr, sizeof (saddr)) != -1)
return fd;
diff -Naur xmms-1.2.9-orig/xmms/controlsocket.c xmms-1.2.9/xmms/controlsocket.c
--- xmms-1.2.9-orig/xmms/controlsocket.c 2004-01-11 18:27:27 +0200
+++ xmms-1.2.9/xmms/controlsocket.c 2004-01-29 09:17:33 +0200
@@ -59,8 +59,8 @@
for (i = 0;; i++)
{
saddr.sun_family = AF_UNIX;
- g_snprintf(saddr.sun_path, 108, "%s/xmms_%s.%d",
- g_get_tmp_dir(), g_get_user_name(), i);
+ g_snprintf(saddr.sun_path, 108, "%s/.xmms/xmms_%s.%d",
+ g_get_home_dir(), g_get_user_name(), i);
if (!xmms_remote_is_running(i))
{
if ((unlink(saddr.sun_path) == -1) && errno != ENOENT)