From cf761e007ceed0cb1f6759df8cb8b8c086ad998cf0a778e3856018acd99be486 Mon Sep 17 00:00:00 2001 From: OBS User unknown Date: Fri, 31 Aug 2007 14:05:17 +0000 Subject: [PATCH] OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/xfsdump?expand=0&rev=4 --- xfsdump-fix-open-calls.patch | 26 ++++++++++++++++++++++++++ xfsdump.changes | 5 +++++ xfsdump.spec | 8 ++++++-- 3 files changed, 37 insertions(+), 2 deletions(-) create mode 100644 xfsdump-fix-open-calls.patch diff --git a/xfsdump-fix-open-calls.patch b/xfsdump-fix-open-calls.patch new file mode 100644 index 0000000..5008b21 --- /dev/null +++ b/xfsdump-fix-open-calls.patch @@ -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; + } + diff --git a/xfsdump.changes b/xfsdump.changes index e46c3e9..1c89a93 100644 --- a/xfsdump.changes +++ b/xfsdump.changes @@ -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 diff --git a/xfsdump.spec b/xfsdump.spec index 72a799a..86ae541 100644 --- a/xfsdump.spec +++ b/xfsdump.spec @@ -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.