insecure file creation (#145721)

This commit is contained in:
Peter Vrabec 2005-01-24 15:00:23 +00:00
parent 2940cc7b1d
commit cb0ea93dcb
2 changed files with 27 additions and 1 deletions

20
cpio-2.6-umask.patch Normal file
View File

@ -0,0 +1,20 @@
--- cpio-2.6/src/main.c.umask 2005-01-24 14:24:41.281975935 +0000
+++ cpio-2.6/src/main.c 2005-01-24 14:38:59.127437814 +0000
@@ -741,8 +741,7 @@
textdomain (PACKAGE);
program_name = argv[0];
- umask (0);
-
+
#ifdef __TURBOC__
_fmode = O_BINARY; /* Put stdin and stdout in binary mode. */
#endif
@@ -752,6 +751,7 @@
#endif
process_args (argc, argv);
+ umask (0);
initialize_buffers ();

View File

@ -6,7 +6,7 @@
Summary: A GNU archiving program. Summary: A GNU archiving program.
Name: cpio Name: cpio
Version: 2.6 Version: 2.6
Release: 3 Release: 4
License: GPL License: GPL
Group: Applications/Archiving Group: Applications/Archiving
URL: http://www.gnu.org/software/cpio/ URL: http://www.gnu.org/software/cpio/
@ -15,6 +15,7 @@ Patch0: cpio-2.6-rh.patch
Patch13: cpio-2.5-nolibnsl.patch Patch13: cpio-2.5-nolibnsl.patch
Patch14: cpio-2.6-lfs.patch Patch14: cpio-2.6-lfs.patch
Patch16: cpio-2.6-lstat.patch Patch16: cpio-2.6-lstat.patch
Patch17: cpio-2.6-umask.patch
%ifnos linux %ifnos linux
Prereq: /sbin/rmt Prereq: /sbin/rmt
@ -43,6 +44,8 @@ Install cpio if you need a program to manage file archives.
%patch13 -p1 -b .nolibnsl %patch13 -p1 -b .nolibnsl
%patch14 -p1 -b .lfs %patch14 -p1 -b .lfs
%patch16 -p1 -b .lstat %patch16 -p1 -b .lstat
%patch17 -p1 -b .umask
autoheader autoheader
%build %build
@ -92,6 +95,9 @@ fi
%{_datadir}/locale/* %{_datadir}/locale/*
%changelog %changelog
* Mon Jan 24 2005 Peter Vrabec <pvrabec@redhat.com>
- insecure file creation (#145721)
* Mon Jan 17 2005 Peter Vrabec <pvrabec@redhat.com> * Mon Jan 17 2005 Peter Vrabec <pvrabec@redhat.com>
- fix symlinks pack (#145225) - fix symlinks pack (#145225)