forked from pool/xfsdump
This commit is contained in:
parent
30e31116b9
commit
cf761e007c
26
xfsdump-fix-open-calls.patch
Normal file
26
xfsdump-fix-open-calls.patch
Normal file
@ -0,0 +1,26 @@
|
||||
Index: invutil/invidx.c
|
||||
===================================================================
|
||||
RCS file: /cvs/xfs-cmds/xfsdump/invutil/invidx.c,v
|
||||
retrieving revision 1.7
|
||||
retrieving revision 1.8
|
||||
diff -u -u -r1.7 -r1.8
|
||||
--- invutil/invidx.c 24 May 2006 06:08:55 -0000 1.7
|
||||
+++ invutil/invidx.c 24 Aug 2007 19:36:15 -0000 1.8
|
||||
@@ -275,7 +275,7 @@
|
||||
return 0;
|
||||
}
|
||||
|
||||
- new_fd = open(dst_idxfile, O_CREAT|O_RDWR);
|
||||
+ new_fd = open(dst_idxfile, O_CREAT|O_RDWR, S_IRUSR|S_IWUSR);
|
||||
if(new_fd < 0) {
|
||||
put_error("Error: unable to open inventory index file");
|
||||
return 0;
|
||||
@@ -616,7 +616,7 @@
|
||||
invt_sescounter_t sescnt;
|
||||
|
||||
/* create the new storage object */
|
||||
- if (( fd = open( fname, O_RDWR | O_EXCL | O_CREAT )) < 0 ) {
|
||||
+ if (( fd = open( fname, O_RDWR | O_EXCL | O_CREAT, S_IRUSR|S_IWUSR )) < 0 ) {
|
||||
return -1;
|
||||
}
|
||||
|
@ -1,3 +1,8 @@
|
||||
-------------------------------------------------------------------
|
||||
Fri Aug 31 14:21:14 CEST 2007 - mmarek@suse.cz
|
||||
|
||||
- fixed missing mode arguments to open()
|
||||
|
||||
-------------------------------------------------------------------
|
||||
Fri Jun 22 17:39:04 CEST 2007 - mmarek@suse.cz
|
||||
|
||||
|
@ -13,14 +13,15 @@
|
||||
Name: xfsdump
|
||||
BuildRequires: e2fsprogs-devel libattr-devel ncurses-devel xfsprogs-devel
|
||||
Version: 2.2.45
|
||||
Release: 1
|
||||
Release: 17
|
||||
Autoreqprov: on
|
||||
Group: System/Filesystems
|
||||
License: GNU General Public License (GPL)
|
||||
License: GPL v2 or later
|
||||
URL: http://oss.sgi.com/projects/xfs/
|
||||
Summary: Administrative Utilities for the XFS File System
|
||||
Source0: xfsdump_%version-1.tar.bz2
|
||||
Patch0: xfsdump-docdir.diff
|
||||
Patch1: xfsdump-fix-open-calls.patch
|
||||
BuildRoot: %{_tmppath}/%{name}-%{version}-build
|
||||
|
||||
%description
|
||||
@ -49,6 +50,7 @@ Authors:
|
||||
%prep
|
||||
%setup -q
|
||||
%patch0
|
||||
%patch1
|
||||
|
||||
%build
|
||||
%{suse_update_config -f}
|
||||
@ -79,6 +81,8 @@ rm -rf $RPM_BUILD_ROOT
|
||||
/usr/share/man/man8/*
|
||||
|
||||
%changelog
|
||||
* Fri Aug 31 2007 - mmarek@suse.cz
|
||||
- fixed missing mode arguments to open()
|
||||
* Fri Jun 22 2007 - mmarek@suse.cz
|
||||
- updated to 2.2.45
|
||||
* Change fsr's temp directory mode to 0700 to deny full access.
|
||||
|
Loading…
Reference in New Issue
Block a user