OBS User unknown 2009-08-05 23:07:56 +00:00 committed by Git OBS Bridge
parent ec73d620c7
commit c447f4070f
5 changed files with 22 additions and 9 deletions

10
nbd-2.9.13-close.diff Normal file
View 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;
}

View File

@ -1,7 +1,5 @@
Index: nbd-2.9.8/README --- nbd-2.9.13/README
=================================================================== +++ nbd-2.9.13/README
--- nbd-2.9.8.orig/README
+++ nbd-2.9.8/README
@@ -11,16 +11,18 @@ deadlock issues if you do that[1]. @@ -11,16 +11,18 @@ deadlock issues if you do that[1].
To install the package, please see the INSTALL file. You'll need to To install the package, please see the INSTALL file. You'll need to

View File

@ -1,7 +1,5 @@
Index: nbd-2.9.8/nbd-server.c --- nbd-2.9.13/nbd-server.c
=================================================================== +++ nbd-2.9.13/nbd-server.c
--- nbd-2.9.8.orig/nbd-server.c
+++ nbd-2.9.8/nbd-server.c
@@ -1334,9 +1334,9 @@ void serveconnection(CLIENT *client) { @@ -1334,9 +1334,9 @@ void serveconnection(CLIENT *client) {
**/ **/
void set_peername(int net, CLIENT *client) { void set_peername(int net, CLIENT *client) {

View File

@ -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 Thu Jul 9 11:41:55 CEST 2009 - ms@suse.de

View File

@ -22,7 +22,7 @@ Name: nbd
BuildRequires: doxygen glib2-devel BuildRequires: doxygen glib2-devel
PreReq: %insserv_prereq coreutils PreReq: %insserv_prereq coreutils
Version: 2.9.13 Version: 2.9.13
Release: 1 Release: 2
License: GPL v2 or later License: GPL v2 or later
Group: Productivity/Networking/Other Group: Productivity/Networking/Other
AutoReqProv: on AutoReqProv: on
@ -30,6 +30,7 @@ Source: %{name}-%{version}.tar.bz2
Source2: init.nbd-server Source2: init.nbd-server
Patch2: nbd-2.9.13-warn.diff Patch2: nbd-2.9.13-warn.diff
Patch3: nbd-2.9.13-doc.diff Patch3: nbd-2.9.13-doc.diff
Patch4: nbd-2.9.13-close.diff
Summary: Network Block Device Server and Client Utilities Summary: Network Block Device Server and Client Utilities
Url: http://nbd.sourceforge.net/ Url: http://nbd.sourceforge.net/
Prefix: /usr Prefix: /usr
@ -97,6 +98,7 @@ Authors:
%setup %setup
%patch2 -p1 %patch2 -p1
%patch3 -p1 %patch3 -p1
%patch4 -p1
touch nbd-client.8 touch nbd-client.8
%build %build