]> git.tuebingen.mpg.de Git - paraslash.git/blobdiff - server.c
Consult $HOME rather than calling getpwuid(),
[paraslash.git] / server.c
index ea9cc9c003616762a96aa546c381d54417fd34a2..0df82e000bc491d6de9e1333fb3241446674e49d 100644 (file)
--- a/server.c
+++ b/server.c
@@ -232,9 +232,8 @@ void parse_config_or_die(bool reload)
                if (OPT_GIVEN(USER_LIST))
                        user_list_file = para_strdup(OPT_STRING_VAL(USER_LIST));
                else {
-                       char *home = para_homedir();
+                       const char *home = get_homedir();
                        user_list_file = make_message("%s/.paraslash/server.users", home);
-                       free(home);
                }
                user_list_init(user_list_file);
                free(user_list_file);