diff --git a/net/local/Kconfig b/net/local/Kconfig index 7de32d905ff..43c8aeb4360 100644 --- a/net/local/Kconfig +++ b/net/local/Kconfig @@ -17,7 +17,7 @@ if NET_LOCAL config NET_LOCAL_VFS_PATH string "Path prefix to Unix domain sockets" - default "/var/socket" + default "/var/run" ---help--- The path prefix to where Unix domain sockets will exist in the VFS namespace. diff --git a/net/local/local_fifo.c b/net/local/local_fifo.c index 9de6eae68b6..22e72958eca 100644 --- a/net/local/local_fifo.c +++ b/net/local/local_fifo.c @@ -66,6 +66,11 @@ static void local_format_name(FAR const char *inpath, FAR char *outpath, FAR const char *suffix, int32_t id) { + if (strcmp(inpath, CONFIG_NET_LOCAL_VFS_PATH) == 0) + { + inpath += strlen(CONFIG_NET_LOCAL_VFS_PATH); + } + if (id < 0) { snprintf(outpath, LOCAL_FULLPATH_LEN - 1,