#include <sys/stat.h>
#include "types/types.h"
+#include <file/file.h>
#include <log/log.h>
#include <talloc/talloc.h>
#include "parser.h"
#include "parser-utils.h"
#include "paths.h"
-#include "file.h"
struct p_item {
struct list_item list;
struct discover_device *dev,
const char *filename)
{
- return join_paths(ctx, dev->mount_path, filename);
+ return join_paths(ctx, dev->root_path, filename);
}
int parser_request_file(struct discover_context *ctx,
path = local_path(ctx, dev, dirname);
rc = stat(path, &statbuf);
+ talloc_free(path);
if (!rc)
return -1;