summaryrefslogtreecommitdiff
path: root/source3/smbd/service.c
diff options
context:
space:
mode:
authorJeremy Allison <jra@samba.org>2000-05-23 01:27:19 +0000
committerJeremy Allison <jra@samba.org>2000-05-23 01:27:19 +0000
commit3cbaf59726fc9fb7fc5a3124b3e1b8c5480a568e (patch)
tree3e04d4efdfa7f36e369542f12ffccf41658991fc /source3/smbd/service.c
parent6c52c1a5c76b871ecb415962b2ea7fed64f8e10a (diff)
downloadsamba-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/service.c')
-rw-r--r--source3/smbd/service.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/source3/smbd/service.c b/source3/smbd/service.c
index fa3bc3cb10..e6c8b2a6d8 100644
--- a/source3/smbd/service.c
+++ b/source3/smbd/service.c
@@ -212,7 +212,7 @@ connection_struct *make_connection(char *service,char *user,char *password, int
DEBUG(0,("%s (%s) couldn't find service %s\n",
remote_machine, client_addr(), service));
- *ecode = ERRinvnetname;
+ *ecode = ERRnosuchshare;
return NULL;
}
@@ -567,7 +567,7 @@ connection_struct *make_connection(char *service,char *user,char *password, int
yield_connection(conn,"",MAXSTATUS);
}
conn_free(conn);
- *ecode = ERRinvnetname;
+ *ecode = ERRnosuchshare;
return NULL;
}