This commit is contained in:
parent
ec73d620c7
commit
c447f4070f
10
nbd-2.9.13-close.diff
Normal file
10
nbd-2.9.13-close.diff
Normal file
@ -0,0 +1,10 @@
|
||||
--- nbd-2.9.13/nbd-client.c 2009-08-05 11:52:04.000000000 +0200
|
||||
+++ nbd-2.9.13/nbd-client.c 2009-08-05 11:54:20.000000000 +0200
|
||||
@@ -62,6 +62,7 @@
|
||||
len=read(fd, buf, 256);
|
||||
buf[len-1]='\0';
|
||||
if(do_print) printf("%s\n", buf);
|
||||
+ close (fd);
|
||||
return 0;
|
||||
}
|
||||
|
@ -1,7 +1,5 @@
|
||||
Index: nbd-2.9.8/README
|
||||
===================================================================
|
||||
--- nbd-2.9.8.orig/README
|
||||
+++ nbd-2.9.8/README
|
||||
--- nbd-2.9.13/README
|
||||
+++ nbd-2.9.13/README
|
||||
@@ -11,16 +11,18 @@ deadlock issues if you do that[1].
|
||||
|
||||
To install the package, please see the INSTALL file. You'll need to
|
||||
|
@ -1,7 +1,5 @@
|
||||
Index: nbd-2.9.8/nbd-server.c
|
||||
===================================================================
|
||||
--- nbd-2.9.8.orig/nbd-server.c
|
||||
+++ nbd-2.9.8/nbd-server.c
|
||||
--- nbd-2.9.13/nbd-server.c
|
||||
+++ nbd-2.9.13/nbd-server.c
|
||||
@@ -1334,9 +1334,9 @@ void serveconnection(CLIENT *client) {
|
||||
**/
|
||||
void set_peername(int net, CLIENT *client) {
|
||||
|
@ -1,3 +1,8 @@
|
||||
-------------------------------------------------------------------
|
||||
Wed Aug 5 11:58:52 CEST 2009 - ms@suse.de
|
||||
|
||||
- fixed missing close to open (bnc #528272)
|
||||
|
||||
-------------------------------------------------------------------
|
||||
Thu Jul 9 11:41:55 CEST 2009 - ms@suse.de
|
||||
|
||||
|
4
nbd.spec
4
nbd.spec
@ -22,7 +22,7 @@ Name: nbd
|
||||
BuildRequires: doxygen glib2-devel
|
||||
PreReq: %insserv_prereq coreutils
|
||||
Version: 2.9.13
|
||||
Release: 1
|
||||
Release: 2
|
||||
License: GPL v2 or later
|
||||
Group: Productivity/Networking/Other
|
||||
AutoReqProv: on
|
||||
@ -30,6 +30,7 @@ Source: %{name}-%{version}.tar.bz2
|
||||
Source2: init.nbd-server
|
||||
Patch2: nbd-2.9.13-warn.diff
|
||||
Patch3: nbd-2.9.13-doc.diff
|
||||
Patch4: nbd-2.9.13-close.diff
|
||||
Summary: Network Block Device Server and Client Utilities
|
||||
Url: http://nbd.sourceforge.net/
|
||||
Prefix: /usr
|
||||
@ -97,6 +98,7 @@ Authors:
|
||||
%setup
|
||||
%patch2 -p1
|
||||
%patch3 -p1
|
||||
%patch4 -p1
|
||||
touch nbd-client.8
|
||||
|
||||
%build
|
||||
|
Loading…
x
Reference in New Issue
Block a user