opkg: Fix handling of sha256sums for conffiles
[openwrt/staging/yousong.git] / package / system / opkg / patches / 230-drop_md5_support.patch
index 3b281040b03094ce6fae1af6c80f08cb2b023d97..57546bedf199c642370823cc3c741e30b839a661 100644 (file)
  
  # check for openssl
  AC_ARG_ENABLE(openssl,
+--- a/libopkg/pkg_parse.c
++++ b/libopkg/pkg_parse.c
+@@ -49,9 +49,9 @@ parse_status(pkg_t *pkg, const char *sst
+ static void
+ parse_conffiles(pkg_t *pkg, const char *cstr)
+ {
+-      char file_name[1024], md5sum[35];
++      char file_name[1024], md5sum[85];
+-      if (sscanf(cstr, "%1023s %34s", file_name, md5sum) != 2) {
++      if (sscanf(cstr, "%1023s %84s", file_name, md5sum) != 2) {
+               opkg_msg(ERROR, "Failed to parse Conffiles line for %s\n",
+                               pkg->name);
+               return;