summaryrefslogtreecommitdiff
path: root/src/lib/rib.c
diff options
context:
space:
mode:
authorDimitri Staessens <dimitri.staessens@ugent.be>2018-05-15 13:46:59 +0200
committerSander Vrijders <sander.vrijders@ugent.be>2018-05-15 20:45:15 +0200
commita1f426f464989d8d045435f1f396719d29bcbdb2 (patch)
tree6cdae48a435e4e89b14a3200b45cb9ee6b5f28e7 /src/lib/rib.c
parent38cfdc212c623a46038f005b0c1604c3fdaf3762 (diff)
downloadouroboros-a1f426f464989d8d045435f1f396719d29bcbdb2.tar.gz
ouroboros-a1f426f464989d8d045435f1f396719d29bcbdb2.zip
lib: Use IPCP name as RIB directory
This will change the FUSE mountpount to the name of the IPCP instead of a generic name based on its pid. Signed-off-by: Dimitri Staessens <dimitri.staessens@ugent.be> Signed-off-by: Sander Vrijders <sander.vrijders@ugent.be>
Diffstat (limited to 'src/lib/rib.c')
-rw-r--r--src/lib/rib.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/lib/rib.c b/src/lib/rib.c
index fa525c50..22397e24 100644
--- a/src/lib/rib.c
+++ b/src/lib/rib.c
@@ -261,7 +261,7 @@ static void * fuse_thr(void * o)
#endif /* HAVE_FUSE */
-int rib_init(const char * prefix)
+int rib_init(const char * mountpt)
{
#ifdef HAVE_FUSE
struct stat st;
@@ -277,7 +277,7 @@ int rib_init(const char * prefix)
if (stat(FUSE_PREFIX, &st) == -1)
return -1;
- sprintf(rib.mnt, FUSE_PREFIX "/%s.%d", prefix, getpid());
+ sprintf(rib.mnt, FUSE_PREFIX "/%s", mountpt);
if (stat(rib.mnt, &st) == -1)
switch(errno) {