2015-10-09 13:20:18 +02:00
|
|
|
Index: cpio-2.12/src/copyin.c
|
2010-08-14 00:00:07 +02:00
|
|
|
===================================================================
|
2015-10-09 13:20:18 +02:00
|
|
|
--- cpio-2.12.orig/src/copyin.c
|
|
|
|
+++ cpio-2.12/src/copyin.c
|
|
|
|
@@ -871,6 +871,8 @@ read_pattern_file ()
|
2010-08-14 00:00:07 +02:00
|
|
|
pattern_fp = fopen (pattern_file_name, "r");
|
|
|
|
if (pattern_fp == NULL)
|
2015-10-09 13:20:18 +02:00
|
|
|
open_fatal (pattern_file_name);
|
2010-08-14 00:00:07 +02:00
|
|
|
+ else
|
|
|
|
+ {
|
|
|
|
while (ds_fgetstr (pattern_fp, &pattern_name, '\n') != NULL)
|
|
|
|
{
|
|
|
|
if (new_num_patterns >= max_new_patterns)
|
2015-10-09 13:20:18 +02:00
|
|
|
@@ -885,6 +887,7 @@ read_pattern_file ()
|
2010-08-14 00:00:07 +02:00
|
|
|
}
|
|
|
|
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];
|