1
0
mirror of git://projects.qi-hardware.com/openwrt-xburst.git synced 2024-11-02 04:12:51 +02:00
openwrt-xburst/package/opkg/patches/011-old-config-location.patch
jow eec3ede257 [package] opkg: fix invalid free triggered by 011-old-config-location.patch and replace 012-cleanup-tmpdir.patch with upstream fix
git-svn-id: svn://svn.openwrt.org/openwrt/trunk@18879 3c298f89-4303-0410-b956-a3cf2f4a3e73
2009-12-21 15:09:08 +00:00

15 lines
251 B
Diff

--- a/src/opkg-cl.c
+++ b/src/opkg-cl.c
@@ -169,7 +169,10 @@
printf("Confusion: getopt_long returned %d\n", c);
}
}
-
+
+ if(!conf->conf_file)
+ conf->conf_file = xstrdup("/etc/opkg.conf");
+
if (parse_err)
return parse_err;
else