kumquat-buildroot/package/nbd/nbd-server-susv3-legacy.patch
Peter Korsgaard 67a284d820 nbd: add server patches missing from 6aac003
Somehow these patches never got added.

Signed-off-by: Peter Korsgaard <jacmet@sunsite.dk>
2010-02-03 20:57:30 +01:00

12 lines
406 B
Diff

--- nbd-2.9.11/nbd-server.c 2009-10-01 16:10:15.000000000 +0200
+++ nbd-2.9.11/nbd-server.c 2009-10-01 16:10:32.000000000 +0200
@@ -264,7 +264,7 @@
inet_aton(opts->clientname, &client);
while (fgets(line,LINELEN,f)!=NULL) {
- if((tmp=index(line, '/'))) {
+ if((tmp=strchr(line, '/'))) {
if(strlen(line)<=tmp-line) {
msg4(LOG_CRIT, ERRMSG, line, opts->server->authname);
return 0;