]> git.ipfire.org Git - thirdparty/libarchive.git/commitdiff
Fix chown line in shardump format
authorTony Morlan <archived@spam.scroner.com>
Sat, 24 Aug 2013 01:43:26 +0000 (20:43 -0500)
committerTim Kientzle <kientzle@acm.org>
Wed, 4 Sep 2013 04:32:28 +0000 (21:32 -0700)
Currently the chown line is written with no space before entry name.

libarchive/archive_write_set_format_shar.c

index 9ec15f915c9d2b38ebe675192862a5dfdbd76a80..c033fb32f7efdb35474fe8d137ca34f99be85461 100644 (file)
@@ -548,6 +548,7 @@ archive_write_shar_finish_entry(struct archive_write *a)
                                archive_strcat(&shar->work, ":");
                                shar_quote(&shar->work, g, 1);
                        }
+                       archive_strcat(&shar->work, " ");
                        shar_quote(&shar->work,
                            archive_entry_pathname(shar->entry), 1);
                        archive_strcat(&shar->work, "\n");