diff options
Diffstat (limited to 'src')
-rw-r--r-- | src/database.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/database.c b/src/database.c index 29e8ea9..e064ca5 100644 --- a/src/database.c +++ b/src/database.c @@ -1700,7 +1700,7 @@ int apk_db_open(struct apk_database *db, struct apk_db_options *dbopts) apk_dir_foreach_file(openat(db->root_fd, "etc/apk/repositories.d", O_RDONLY | O_CLOEXEC), add_repos_from_file, db); } else { - add_repos_from_file(db, db->root_fd, dbopts->repositories_file); + add_repos_from_file(db, AT_FDCWD, dbopts->repositories_file); } if (db->repo_update_counter) |