0d56ec87cc
- 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
13 lines
317 B
Diff
13 lines
317 B
Diff
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;
|
|
}
|
|
|