GNOME Bugzilla – Bug 551146
[PATCH] cpio: escaped filenames and block devices support
Last modified: 2008-09-07 06:51:42 UTC
Please describe the problem: Filenames with spaces or non-ascii characters are not correctly parsed for cpio archives. This was recently fixed for rpm (which uses cpio as a backend). I'll attach a patch that fixes it for cpio. It also fixes the parsing of block devices. Steps to reproduce: I'll attach a small cpio archive containing all sort of difficulties, that gets correctly parsed when the patch is applied. Actual results: Expected results: Does this happen every time? Other information:
Created attachment 118174 [details] cpio archive from hell To be used as a test-case.
Created attachment 118175 [details] [review] Add support for escaped names and block devices This patch also tries to align as much as possible the functions to the rpm support functions in order to keep the maintenance burden to the minimum.
patch applied to trunk, thanks.