diff --git a/doc/changelog.txt b/doc/changelog.txt index 8a70883..869ba23 100644 --- a/doc/changelog.txt +++ b/doc/changelog.txt @@ -1,5 +1,6 @@ 0.13 "" (released xx.xx.xxxx) + * Fix command argument order when extracting cpio archives. 0.12 "Galaxy Quest" (released 20.11.2010) diff --git a/patoolib/programs/cpio.py b/patoolib/programs/cpio.py index d8a22c3..5c3c41d 100644 --- a/patoolib/programs/cpio.py +++ b/patoolib/programs/cpio.py @@ -44,9 +44,9 @@ def create_cpio(archive, encoding, cmd, *args, **kwargs): if kwargs['verbose']: cmdlist.append('-v') if len(args) != 0: - findcmd = ['find', '-print0'] + findcmd = ['find'] findcmd.extend([util.shell_quote(x) for x in args]) - findcmd.append('|') + findcmd.extend(['-print0', '|']) cmdlist[0:0] = findcmd cmdlist.append('-0') cmdlist.extend([">", util.shell_quote(archive)])