d47d4b1312
- update to 2.12 * Improved documentation * Manpages are installed by make install * New options for copy-out mode: --ignore-devno, --renumber-inodes, --device-independent, --reproducible * update * cpio-use_new_ascii_format.patch * cpio-mt.patch * cpio-eof_tape_handling.patch * cpio-pattern-file-sigsegv.patch * cpio-check_for_symlinks.patch * remove (no longer needed) * cpio-stdio.in.patch * 0001-Fix-memory-overrun-on-reading-improperly-created-lin.patch * add * cpio-2.12-util.c_no_return_in_nonvoid_fnc.patch to add missing return to the nonvoid get_inode_and_dev() function - use spec-cleaner OBS-URL: https://build.opensuse.org/request/show/337401 OBS-URL: https://build.opensuse.org/package/show/Archiving/cpio?expand=0&rev=56
22 lines
678 B
Diff
22 lines
678 B
Diff
Index: cpio-2.12/src/copyin.c
|
|
===================================================================
|
|
--- cpio-2.12.orig/src/copyin.c
|
|
+++ cpio-2.12/src/copyin.c
|
|
@@ -871,6 +871,8 @@ read_pattern_file ()
|
|
pattern_fp = fopen (pattern_file_name, "r");
|
|
if (pattern_fp == NULL)
|
|
open_fatal (pattern_file_name);
|
|
+ else
|
|
+ {
|
|
while (ds_fgetstr (pattern_fp, &pattern_name, '\n') != NULL)
|
|
{
|
|
if (new_num_patterns >= max_new_patterns)
|
|
@@ -885,6 +887,7 @@ read_pattern_file ()
|
|
}
|
|
if (ferror (pattern_fp) || fclose (pattern_fp) == EOF)
|
|
close_error (pattern_file_name);
|
|
+ }
|
|
|
|
for (i = 0; i < num_patterns; ++i)
|
|
new_save_patterns[i] = save_patterns[i];
|