$ git clone https://socialnetwork.ion.nu/socialnetwork.git
commit 83190a006457bdbb5e477db5b1d5df17fa0cd002
Author: Alicia <...>
Date:   Sun Jan 22 14:26:20 2017 +0100

    Fixed a call to mkdir() that was not updated with the path prefix.

diff --git a/social.c b/social.c
index 6e04115..1715a1d 100644
--- a/social.c
+++ b/social.c
@@ -47,8 +47,9 @@ static void user_save(struct user* user)
 {
   if(!user->pubkey){return;}
   // TODO: Absolute path, something like $HOME/.socialnetwork
-  mkdir("users", 0700);
   char path[strlen(prefix)+strlen("/users/0")+40];
+  sprintf(path, "%s/users", prefix);
+  mkdir(path, 0700);
   sprintf(path, "%s/users/"PEERFMT, prefix, PEERARG(user->id));
   int f=open(path, O_WRONLY|O_CREAT|O_TRUNC, 0600);
   gnutls_datum_t key;