summaryrefslogtreecommitdiff
path: root/src/statcmd.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/statcmd.c')
-rw-r--r--src/statcmd.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/statcmd.c b/src/statcmd.c
index d3d5d2b95..02933a9c9 100644
--- a/src/statcmd.c
+++ b/src/statcmd.c
@@ -369,11 +369,11 @@ main(int argc, const char *const *argv)
bindtextdomain(PACKAGE, LOCALEDIR);
textdomain(PACKAGE);
- admindir = pkgadmindir_init(ADMINDIR);
-
standard_startup();
myopt(&argv, cmdinfos);
+ admindir = dpkg_db_set_dir(admindir);
+
if (!cipaction)
badusage(_("need an action option"));