[Bug 4556] dpkg fails to re-install config files when unchanged

bugzilla at busybox.net bugzilla at busybox.net
Tue Jul 31 08:17:09 UTC 2012


https://bugs.busybox.net/show_bug.cgi?id=4556

--- Comment #1 from Bobi B. <606u at rconsulting.bg> 2012-07-31 08:17:08 UTC ---
The problem is, that busybox searches for MD5 sum using file's full path,
including leading slash

    6583a05c20dfb3784cd48fef2c59aa05  /etc/protocols

whereas in md5sums leading slash is omitted

    6583a05c20dfb3784cd48fef2c59aa05  etc/protocols

On my Debian box md5sums files has no leading slashes, so the quickest fix is
to replace

    sprintf(bin2hex(md5line, buf, 16), "  %s", name_ptr);

with

    sprintf(bin2hex(md5line, buf, 16), "  %s", name_ptr + 1);

in archival/dpkg.c:1553. Another option is to look for both.

-- 
Configure bugmail: https://bugs.busybox.net/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are on the CC list for the bug.


More information about the busybox-cvs mailing list