diff options
author | Jeremy Allison <jra@samba.org> | 1997-10-08 00:21:39 +0000 |
---|---|---|
committer | Jeremy Allison <jra@samba.org> | 1997-10-08 00:21:39 +0000 |
commit | b0bdb42bd12905f5a6990b1cdc5d33fc4a3063a5 (patch) | |
tree | cadfbd437f2146d404592cfa95b736bd4fbe34ba /source3/smbd/ipc.c | |
parent | ed61181f29bcbc3ae483bba1bb039f4be08aeaea (diff) | |
download | samba-b0bdb42bd12905f5a6990b1cdc5d33fc4a3063a5.tar.gz samba-b0bdb42bd12905f5a6990b1cdc5d33fc4a3063a5.tar.bz2 samba-b0bdb42bd12905f5a6990b1cdc5d33fc4a3063a5.zip |
ipc.c: Added ERROR_MORE_DATA error if client buffer too small.
server.c: Allow admin_user on read only shares. I think this is
safe but it needs looking at.
Jeremy (jallison@whistle.com)
(This used to be commit cc50955a2760f1de7e80b91408a7c0806f6eb44c)
Diffstat (limited to 'source3/smbd/ipc.c')
-rw-r--r-- | source3/smbd/ipc.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/source3/smbd/ipc.c b/source3/smbd/ipc.c index b9355c4ec0..6da9562c9f 100644 --- a/source3/smbd/ipc.c +++ b/source3/smbd/ipc.c @@ -1074,7 +1074,7 @@ static BOOL api_RNetServerEnum(int cnum, uint16 vuid, char *param, char *data, *rparam_len = 8; *rparam = REALLOC(*rparam,*rparam_len); - SSVAL(*rparam,0,NERR_Success); + SSVAL(*rparam,0,(missed == 0 ? NERR_Success : ERROR_MORE_DATA)); SSVAL(*rparam,2,0); SSVAL(*rparam,4,counted); SSVAL(*rparam,6,counted+missed); |