diff options
Diffstat (limited to 'lib')
-rw-r--r-- | lib/libarchive/test/test_write_format_ar.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/lib/libarchive/test/test_write_format_ar.c b/lib/libarchive/test/test_write_format_ar.c index 1ee4a66..3f7e698 100644 --- a/lib/libarchive/test/test_write_format_ar.c +++ b/lib/libarchive/test/test_write_format_ar.c @@ -68,7 +68,7 @@ DEFINE_TEST(test_write_format_ar) assert((ae = archive_entry_new()) != NULL); archive_entry_copy_pathname(ae, "ggghhhjjjrrrttt.o"); - archive_entry_set_mode(ae, S_IFREG | 0755); + archive_entry_set_filetype(ae, AE_IFREG); archive_entry_set_size(ae, 7); assertA(0 == archive_write_header(a, ae)); assertA(7 == archive_write_data(a, "7777777", 7)); @@ -158,7 +158,7 @@ DEFINE_TEST(test_write_format_ar) /* write a entry need long name extension */ assert((ae = archive_entry_new()) != NULL); archive_entry_copy_pathname(ae, "ttttyyyyuuuuiiii.o"); - archive_entry_set_mode(ae, S_IFREG | 0755); + archive_entry_set_filetype(ae, AE_IFREG); archive_entry_set_size(ae, 5); assertA(0 == archive_write_header(a, ae)); assertA(5 == archive_write_data(a, "12345", 7)); @@ -167,7 +167,7 @@ DEFINE_TEST(test_write_format_ar) /* write a entry with a short name */ assert((ae = archive_entry_new()) != NULL); archive_entry_copy_pathname(ae, "ttyy.o"); - archive_entry_set_mode(ae, S_IFREG | 0755); + archive_entry_set_filetype(ae, AE_IFREG); archive_entry_set_size(ae, 6); assertA(0 == archive_write_header(a, ae)); assertA(6 == archive_write_data(a, "555555", 7)); |