diff options
| author | 2009-08-14 01:52:14 +0200 | |
|---|---|---|
| committer | 2009-08-14 01:52:14 +0200 | |
| commit | c9a23c2379e53d769b5084eb07ec50616092cea2 (patch) | |
| tree | f05d1a16c6242f4779d2da4f7776e5df81c22ea7 /usbmuxd/main.c | |
| parent | 0f46b4f59fbcadd3a25cab75a1fc19fea07e02b0 (diff) | |
| download | usbmuxd-c9a23c2379e53d769b5084eb07ec50616092cea2.tar.gz usbmuxd-c9a23c2379e53d769b5084eb07ec50616092cea2.tar.bz2 | |
usbmuxd: Change socket path to /var/run/usbmuxd
Diffstat (limited to 'usbmuxd/main.c')
| -rw-r--r-- | usbmuxd/main.c | 5 |
1 files changed, 4 insertions, 1 deletions
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 | |||
| 32 | #include <unistd.h> | 32 | #include <unistd.h> |
| 33 | #include <sys/socket.h> | 33 | #include <sys/socket.h> |
| 34 | #include <sys/un.h> | 34 | #include <sys/un.h> |
| 35 | #include <sys/stat.h> | ||
| 35 | 36 | ||
| 36 | #include "log.h" | 37 | #include "log.h" |
| 37 | #include "usb.h" | 38 | #include "usb.h" |
| 38 | #include "device.h" | 39 | #include "device.h" |
| 39 | #include "client.h" | 40 | #include "client.h" |
| 40 | 41 | ||
| 41 | static const char *socket_path = "/tmp/usbmuxd"; //TODO: CHANGEME | 42 | static const char *socket_path = "/var/run/usbmuxd"; //TODO: CHANGEME |
| 42 | int should_exit; | 43 | int should_exit; |
| 43 | 44 | ||
| 44 | struct sigaction sa_old; | 45 | struct sigaction sa_old; |
| @@ -72,6 +73,8 @@ int create_socket(void) { | |||
| 72 | return -1; | 73 | return -1; |
| 73 | } | 74 | } |
| 74 | 75 | ||
| 76 | chmod(socket_path, 0666); | ||
| 77 | |||
| 75 | return listenfd; | 78 | return listenfd; |
| 76 | } | 79 | } |
| 77 | 80 | ||
