From c9a23c2379e53d769b5084eb07ec50616092cea2 Mon Sep 17 00:00:00 2001 From: Hector Martin Date: Fri, 14 Aug 2009 01:52:14 +0200 Subject: usbmuxd: Change socket path to /var/run/usbmuxd --- usbmuxd/main.c | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/usbmuxd/main.c b/usbmuxd/main.c index d39b416..90f7f22 100644 --- a/usbmuxd/main.c +++ b/usbmuxd/main.c @@ -32,13 +32,14 @@ Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA #include #include #include +#include #include "log.h" #include "usb.h" #include "device.h" #include "client.h" -static const char *socket_path = "/tmp/usbmuxd"; //TODO: CHANGEME +static const char *socket_path = "/var/run/usbmuxd"; //TODO: CHANGEME int should_exit; struct sigaction sa_old; @@ -72,6 +73,8 @@ int create_socket(void) { return -1; } + chmod(socket_path, 0666); + return listenfd; } -- cgit v1.1-32-gdbae