diff --git a/fs/semaphore/Kconfig b/fs/semaphore/Kconfig index 65051145a5c..cd84e6394e6 100644 --- a/fs/semaphore/Kconfig +++ b/fs/semaphore/Kconfig @@ -11,7 +11,7 @@ config FS_NAMED_SEMAPHORES if FS_NAMED_SEMAPHORES -config FS_NAMED_SEMPATH +config FS_NAMED_SEMAPHORES_VFS_PATH string "Path to semaphore storage" default "/var/lock" ---help--- diff --git a/fs/semaphore/sem_open.c b/fs/semaphore/sem_open.c index ad5246a1cb1..e41b24d219d 100644 --- a/fs/semaphore/sem_open.c +++ b/fs/semaphore/sem_open.c @@ -114,7 +114,8 @@ FAR sem_t *sem_open(FAR const char *name, int oflags, ...) /* Get the full path to the semaphore */ - snprintf(fullpath, MAX_SEMPATH, CONFIG_FS_NAMED_SEMPATH "/%s", name); + snprintf(fullpath, MAX_SEMPATH, + CONFIG_FS_NAMED_SEMAPHORES_VFS_PATH "/%s", name); /* Get the inode for this semaphore. This should succeed if the * semaphore has already been created. In this case, inode_find() diff --git a/fs/semaphore/sem_unlink.c b/fs/semaphore/sem_unlink.c index 6bdc30e0742..3b82bf486d5 100644 --- a/fs/semaphore/sem_unlink.c +++ b/fs/semaphore/sem_unlink.c @@ -72,7 +72,8 @@ int sem_unlink(FAR const char *name) /* Get the full path to the semaphore */ - snprintf(fullpath, MAX_SEMPATH, CONFIG_FS_NAMED_SEMPATH "/%s", name); + snprintf(fullpath, MAX_SEMPATH, + CONFIG_FS_NAMED_SEMAPHORES_VFS_PATH "/%s", name); /* Get the inode for this semaphore. */