--- a/src/opkg-cl.c
+++ b/src/opkg-cl.c
-@@ -169,7 +169,10 @@
- printf("Confusion: getopt_long returned %d\n", c);
+@@ -200,6 +200,9 @@ args_parse(int argc, char *argv[])
}
}
--
-+
-+ if(!conf->conf_file)
-+ conf->conf_file = "/etc/opkg.conf";
+
++ if(!conf->conf_file && !conf->offline_root)
++ conf->conf_file = xstrdup("/etc/opkg.conf");
+
if (parse_err)
return parse_err;