Accepting request 289785 from home:pluskalm:branches:network

- Cleanup spec-file with spec-cleaner
- Do not generate config.example from README
  * add config.example as source
- Add unit file (nbd-server.service)
- Add sysconfig template (nbd-server.sysconfig)
- Add no-return-nonvoid.patch
- Update requirements
- Update to 3.9

OBS-URL: https://build.opensuse.org/request/show/289785
OBS-URL: https://build.opensuse.org/package/show/network:utilities/nbd?expand=0&rev=27
This commit is contained in:
OBS User mrdocs
2015-03-15 04:37:42 +00:00
committed by Git OBS Bridge
parent b152c83e84
commit 0d56ec87cc
9 changed files with 196 additions and 75 deletions

View File

@@ -1,8 +1,10 @@
--- nbd-2.9.25/nbd-client.c.orig 2012-01-05 15:40:31.962826124 -0500
+++ nbd-2.9.25/nbd-client.c 2012-01-05 15:40:53.627555277 -0500
@@ -70,6 +70,7 @@
len=read(fd, buf, 256);
buf[len-1]='\0';
Index: nbd-3.9/nbd-client.c
===================================================================
--- nbd-3.9.orig/nbd-client.c
+++ nbd-3.9/nbd-client.c
@@ -79,6 +79,7 @@ int check_conn(char* devname, int do_pri
}
buf[(len < 256) ? len : 255]='\0';
if(do_print) printf("%s\n", buf);
+ close(fd);
return 0;