unexpand_path
cert->path = xstrdup(unexpand_path(path));
unexpand_path(dir), path,
unexpand_path(dir), file, uname, gname, mode, ftell(f));