Author: Lars Mueller Subject: smbcontrol close-share doesn't work if PID not specified Bugzilla: bugzilla.Samba.org #587 --- samba-3.0.9/source/lib/messages.c +++ samba-3.0.9/source/lib/messages.c 2004-12-08 23:18:28 @@ -525,7 +525,7 @@ memcpy(&crec, dbuf.dptr, sizeof(crec)); - if (crec.cnum != -1) + if (crec.cnum == -1) return 0; /* Don't send if the receiver hasn't registered an interest. */ Nur in samba-3.0.9.new/source/lib: .messages.c.swp. --- samba-3.0.9/source/smbd/service.c +++ samba-3.0.9/source/smbd/service.c 2004-12-08 23:14:49 @@ -539,7 +539,8 @@ if (!claim_connection(conn, lp_servicename(SNUM(conn)), lp_max_connections(SNUM(conn)), - False,0)) { + False, + FLAG_MSG_GENERAL|FLAG_MSG_SMBD)) { DEBUG(1,("too many connections - rejected\n")); conn_free(conn); *status = NT_STATUS_INSUFFICIENT_RESOURCES;