SHA256
1
0
forked from pool/cpio

Accepting request 45296 from Archiving

checked in (request 45296)

OBS-URL: https://build.opensuse.org/request/show/45296
OBS-URL: https://build.opensuse.org/package/show/Archiving/cpio?expand=0&rev=24
This commit is contained in:
OBS User autobuild 2010-08-13 22:00:06 +00:00 committed by Git OBS Bridge
parent 54e141de26
commit 23407564b5
4 changed files with 16 additions and 42 deletions

View File

@ -1,11 +1,13 @@
Index: src/copyin.c Index: src/copyin.c
=================================================================== ===================================================================
--- src/copyin.c.orig 2010-08-10 16:45:19.000000000 +0200 --- src/copyin.c.orig
+++ src/copyin.c 2010-08-10 16:45:19.000000000 +0200 +++ src/copyin.c
@@ -1485,6 +1485,19 @@ process_copy_in () @@ -1484,7 +1484,20 @@ process_copy_in ()
fputc ('\n', stderr);
apply_delayed_set_stat (); apply_delayed_set_stat ();
-
+
+ if (tty_in) + if (tty_in)
+ { + {
+ fclose(tty_in); + fclose(tty_in);

View File

@ -1,21 +0,0 @@
Index: cpio-2.11/src/copyin.c
===================================================================
--- cpio-2.11.orig/src/copyin.c 2010-08-10 16:45:19.000000000 +0200
+++ cpio-2.11/src/copyin.c 2010-08-10 16:45:34.000000000 +0200
@@ -862,6 +862,8 @@ read_pattern_file ()
pattern_fp = fopen (pattern_file_name, "r");
if (pattern_fp == NULL)
open_error (pattern_file_name);
+ else
+ {
while (ds_fgetstr (pattern_fp, &pattern_name, '\n') != NULL)
{
if (new_num_patterns >= max_new_patterns)
@@ -876,6 +878,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];

View File

@ -1,8 +1,3 @@
-------------------------------------------------------------------
Tue Aug 10 14:48:32 UTC 2010 - puzel@novell.com
- add cpio-pattern-file-sigsegv.patch (bnc#629860)
------------------------------------------------------------------- -------------------------------------------------------------------
Mon Jun 28 06:38:35 UTC 2010 - jengelh@medozas.de Mon Jun 28 06:38:35 UTC 2010 - jengelh@medozas.de

View File

@ -26,22 +26,21 @@ AutoReqProv: on
Version: 2.11 Version: 2.11
Release: 2 Release: 2
Summary: A Backup and Archiving Utility Summary: A Backup and Archiving Utility
Source: cpio-%{version}.tar.bz2 Source: %{name}-%{version}.tar.bz2
Patch2: cpio-use_new_ascii_format.patch Patch2: %{name}-use_new_ascii_format.patch
#oouch what a ...?! pieces of code grabed from mt_st package to add missing functionality (e.g. density info) #oouch what a ...?! pieces of code grabed from mt_st package to add missing functionality (e.g. density info)
Patch3: cpio-mt.patch Patch3: %{name}-mt.patch
Patch4: cpio-use_sbin_rmt.patch Patch4: %{name}-use_sbin_rmt.patch
Patch5: cpio-open_nonblock.patch Patch5: %{name}-open_nonblock.patch
#patch dir_perm reverts some things which were added by patch #7 chmodRaceC #patch dir_perm reverts some things which were added by patch #7 chmodRaceC
Patch14: cpio-dir_perm.patch Patch14: %{name}-dir_perm.patch
Patch15: cpio-eof_tape_handling.patch Patch15: %{name}-eof_tape_handling.patch
# make posibble to have device nodes with major number > 127 # make posibble to have device nodes with major number > 127
# Red Hat Bugzilla #450109 # Red Hat Bugzilla #450109
Patch17: cpio-dev_number.patch Patch17: %{name}-dev_number.patch
Patch18: cpio-default_tape_dev.patch Patch18: %{name}-default_tape_dev.patch
#PATCH-FIX-UPSTREAM cpio-2.10-close_files_after_copy.patch #PATCH-FIX-UPSTREAM cpio-2.10-close_files_after_copy.patch
Patch20: cpio-close_files_after_copy.patch Patch20: %{name}-close_files_after_copy.patch
Patch21: cpio-pattern-file-sigsegv.patch
PreReq: %install_info_prereq PreReq: %install_info_prereq
BuildRoot: %{_tmppath}/%{name}-%{version}-build BuildRoot: %{_tmppath}/%{name}-%{version}-build
Requires: %{name}-lang = %{version} Requires: %{name}-lang = %{version}
@ -77,7 +76,6 @@ Authors:
%patch17 %patch17
%patch18 %patch18
%patch20 %patch20
%patch21 -p1
#chmod 755 . #chmod 755 .
#chmod u+w * #chmod u+w *
#chmod a+r * #chmod a+r *