diff options
author | Jeremy Allison <jra@samba.org> | 2000-05-23 01:27:19 +0000 |
---|---|---|
committer | Jeremy Allison <jra@samba.org> | 2000-05-23 01:27:19 +0000 |
commit | 3cbaf59726fc9fb7fc5a3124b3e1b8c5480a568e (patch) | |
tree | 3e04d4efdfa7f36e369542f12ffccf41658991fc /source3/smbd/reply.c | |
parent | 6c52c1a5c76b871ecb415962b2ea7fed64f8e10a (diff) | |
download | samba-3cbaf59726fc9fb7fc5a3124b3e1b8c5480a568e.tar.gz samba-3cbaf59726fc9fb7fc5a3124b3e1b8c5480a568e.tar.bz2 samba-3cbaf59726fc9fb7fc5a3124b3e1b8c5480a568e.zip |
Fixed bug where file access was allowed on IPC$ share.
Return correct error codes on invalid share name.
Jeremy.
(This used to be commit 420d6bc4809cef9d74354175d0fa956ab4e8ac3c)
Diffstat (limited to 'source3/smbd/reply.c')
-rw-r--r-- | source3/smbd/reply.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/source3/smbd/reply.c b/source3/smbd/reply.c index eddd06e343..c2db6dd082 100644 --- a/source3/smbd/reply.c +++ b/source3/smbd/reply.c @@ -156,8 +156,8 @@ work out what error to give to a failed connection static int connection_error(char *inbuf,char *outbuf,int ecode) { - if (ecode == ERRnoipc) - return(ERROR(ERRDOS,ERRnoipc)); + if (ecode == ERRnoipc || ecode == ERRnosuchshare) + return(ERROR(ERRDOS,ecode)); return(ERROR(ERRSRV,ecode)); } @@ -295,7 +295,7 @@ int reply_tcon_and_X(connection_struct *conn, char *inbuf,char *outbuf,int lengt p = strchr(path+2,'\\'); if (!p) - return(ERROR(ERRSRV,ERRinvnetname)); + return(ERROR(ERRDOS,ERRnosuchshare)); fstrcpy(service,p+1); p = strchr(service,'%'); if (p) { |