From 4cf7ea556aa1e74f9b34d4467f36d46a1bb25da3 Mon Sep 17 00:00:00 2001 From: Michael Marineau Date: Thu, 13 Mar 2014 21:32:12 -0700 Subject: shared: add root argument to search_and_fopen This adds the same root argument to search_and_fopen that conf_files_list already has. Tools that use those two functions as a pair can now be easily modified to load configuration files from an alternate root filesystem tree. --- src/binfmt/binfmt.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/binfmt/binfmt.c') diff --git a/src/binfmt/binfmt.c b/src/binfmt/binfmt.c index a1877c42f7..9fc5d4e4a4 100644 --- a/src/binfmt/binfmt.c +++ b/src/binfmt/binfmt.c @@ -86,7 +86,7 @@ static int apply_file(const char *path, bool ignore_enoent) { assert(path); - r = search_and_fopen_nulstr(path, "re", conf_file_dirs, &f); + r = search_and_fopen_nulstr(path, "re", NULL, conf_file_dirs, &f); if (r < 0) { if (ignore_enoent && r == -ENOENT) return 0; -- cgit v1.2.3-54-g00ecf