| Summary: | dpkg fails to re-install config files when unchanged | ||
|---|---|---|---|
| Product: | Busybox | Reporter: | Damion <damion.desoto> |
| Component: | Other | Assignee: | unassigned |
| Status: | NEW --- | ||
| Severity: | normal | CC: | busybox-cvs |
| Priority: | P5 | ||
| Version: | 1.19.x | ||
| Target Milestone: | --- | ||
| Hardware: | PC | ||
| OS: | Linux | ||
| Host: | Target: | ||
| Build: | |||
| Attachments: | A patch to apply described change | ||
|
Description
Damion
2011-11-29 03:17:59 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.
Created attachment 4472 [details]
A patch to apply described change
|