summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDaniel Mack <github@zonque.org>2016-03-23 19:48:26 +0100
committerDaniel Mack <github@zonque.org>2016-03-23 19:48:26 +0100
commit1eb963a32ddd2147057178cc230d919b66a90db7 (patch)
tree59170f707cf36a84a1190a037ac22a20b493553a
parent3288dcd39066195b79d326a783e23ecbc276f28c (diff)
parent27a6ea9163384993312f3a0da9710c9151111f50 (diff)
Merge pull request #2885 from gbrikis/master
core: Fix path for opening ffs endpoint ep0
-rw-r--r--src/core/socket.c8
1 files changed, 6 insertions, 2 deletions
diff --git a/src/core/socket.c b/src/core/socket.c
index 87586c1c2e..dd515a17a5 100644
--- a/src/core/socket.c
+++ b/src/core/socket.c
@@ -1341,8 +1341,12 @@ static int socket_open_fds(Socket *s) {
break;
case SOCKET_USB_FUNCTION:
+ {
+ _cleanup_free_ char *ep = NULL;
- p->fd = usbffs_address_create(p->path);
+ ep = path_make_absolute("ep0", p->path);
+
+ p->fd = usbffs_address_create(ep);
if (p->fd < 0) {
r = p->fd;
goto rollback;
@@ -1357,7 +1361,7 @@ static int socket_open_fds(Socket *s) {
goto rollback;
break;
-
+ }
default:
assert_not_reached("Unknown port type");
}