+/* Copyright (C) 2020 Andre Noll <maan@tuebingen.mpg.de>, see file COPYING. */
+
+/** \file upgrade_db.c Prepare the paraslash database for paraslash-0.7. */
+
#include <osl.h>
#include <lopsub.h>
#include <regex.h>
static void set_paths(const struct lls_parse_result *lpr)
{
- char *home = para_homedir();
+ const char *home = get_homedir();
if (OPT_GIVEN(SRC_DATABASE_DIR, lpr))
src_db_dir = para_strdup(OPT_STRING_VAL(SRC_DATABASE_DIR,
else
dst_db_dir = make_message(
"%s/.paraslash/afs_database-0.7", home);
- free(home);
src_aft_dir = make_message("%s/audio_files", src_db_dir);
dst_aft_dir = make_message("%s/audio-files", src_db_dir);
PARA_NOTICE_LOG("source aft dir: %s\n", src_aft_dir);