There is no no need to pass the path to the dbdir to the function that checks for this db access rights.
modified libpkg/pkgdb.c
@@ -811,7 +811,7 @@ pkgdb_is_insecure_mode(int dbdirfd, const char *path, bool install_as_user)
|
|
|
|
|
|
| - | |
| + | |
|
|
|
|
|
@@ -854,10 +854,6 @@ pkgdb_check_access(unsigned mode, const char* dbdir, const char *dbname)
|
|
|
|
|
|
| - | |
| - | |
| - | |
| - | |
|
|
|
|
|
@@ -867,10 +863,6 @@ pkgdb_check_access(unsigned mode, const char* dbdir, const char *dbname)
|
|
|
|
|
|
| - | |
| - | |
| - | |
| - | |
|
|
|
|
|
@@ -925,16 +917,16 @@ pkgdb_access(unsigned mode, unsigned database)
|
|
|
|
|
|
| - | |
| + | |
|
|
| - | |
| + | |
|
|
|
|
|
|
|
|
|
|
|
|
| - | |
| + | |
|
|
|
|
|
modified libpkg/private/pkgdb.h
@@ -166,7 +166,7 @@ int pkgdb_end_solver(struct pkgdb *db);
|
|
|
|
|
|
| - | |
| + | |
|
|
|
|
|
modified libpkg/repo/binary/init.c
@@ -527,7 +527,7 @@ pkg_repo_binary_access(struct pkg_repo *repo, unsigned mode)
|
|
|
|
|
|
| - | |
| + | |
|
|
|
|
|