Skip to content
GitLab
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
alpine
apk-tools
Commits
20b3c7c8
Commit
20b3c7c8
authored
Aug 06, 2009
by
Timo Teräs
Browse files
audit: do not load repositories
they are not needed, and cause errors if signing keys are not present.
parent
0b2052ed
Changes
1
Hide whitespace changes
Inline
Side-by-side
src/audit.c
View file @
20b3c7c8
...
...
@@ -19,6 +19,7 @@
#include
"apk_database.h"
struct
audit_ctx
{
unsigned
int
open_flags
;
int
(
*
audit
)(
struct
apk_database
*
db
);
};
...
...
@@ -169,9 +170,11 @@ static int audit_main(void *ctx, int argc, char **argv)
if
(
actx
->
audit
==
NULL
)
return
-
EINVAL
;
r
=
apk_db_open
(
&
db
,
apk_root
,
APK_OPENF_READ
);
r
=
apk_db_open
(
&
db
,
apk_root
,
APK_OPENF_READ
|
APK_OPENF_NO_SCRIPTS
|
APK_OPENF_NO_REPOS
);
if
(
r
!=
0
)
{
apk_error
(
"
APK database not present"
);
apk_error
(
"
Unable to open db: %s"
,
apk_error_str
(
r
)
);
return
r
;
}
r
=
actx
->
audit
(
&
db
);
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment