summaryrefslogtreecommitdiff
path: root/source3
diff options
context:
space:
mode:
authorGünther Deschner <gd@samba.org>2005-06-15 12:43:36 +0000
committerGerald (Jerry) Carter <jerry@samba.org>2007-10-10 10:57:15 -0500
commit3f657f41cc7a71b3d5b769b31be030ebf543a645 (patch)
treeeba3af6961410fa2806146687f1675c740aaca17 /source3
parent899bc3a07df4ce1f77efc1abce7c3a2e855069e5 (diff)
downloadsamba-3f657f41cc7a71b3d5b769b31be030ebf543a645.tar.gz
samba-3f657f41cc7a71b3d5b769b31be030ebf543a645.tar.bz2
samba-3f657f41cc7a71b3d5b769b31be030ebf543a645.zip
r7606: add WERR_NET_NAME_NOT_FOUND. This is what windows returns when
trying to manipulate non-existing shares. Guenther (This used to be commit 2e5cb531ab8a8babbc425b22d17a39c18f602d4f)
Diffstat (limited to 'source3')
-rw-r--r--source3/include/doserr.h3
-rw-r--r--source3/libsmb/doserr.c1
-rw-r--r--source3/rpc_server/srv_srvsvc_nt.c2
3 files changed, 5 insertions, 1 deletions
diff --git a/source3/include/doserr.h b/source3/include/doserr.h
index 38cd87515e..77255ee4c1 100644
--- a/source3/include/doserr.h
+++ b/source3/include/doserr.h
@@ -236,4 +236,7 @@
#define WERR_DFS_INTERNAL_ERROR W_ERROR(NERR_BASE+590)
#define WERR_DFS_CANT_CREATE_JUNCT W_ERROR(NERR_BASE+569)
+#define WERR_NET_NAME_NOT_FOUND W_ERROR(NERR_BASE+210)
+
+
#endif /* _DOSERR_H */
diff --git a/source3/libsmb/doserr.c b/source3/libsmb/doserr.c
index 0dca265348..4449c92ab1 100644
--- a/source3/libsmb/doserr.c
+++ b/source3/libsmb/doserr.c
@@ -71,6 +71,7 @@ werror_code_struct dos_errs[] =
{ "WERR_SERVER_UNAVAILABLE", WERR_SERVER_UNAVAILABLE },
{ "WERR_IO_PENDING", WERR_IO_PENDING },
{ "WERR_INVALID_SERVICE_CONTROL", WERR_INVALID_SERVICE_CONTROL },
+ { "WERR_NET_NAME_NOT_FOUND", WERR_NET_NAME_NOT_FOUND },
{ NULL, W_ERROR(0) }
};
diff --git a/source3/rpc_server/srv_srvsvc_nt.c b/source3/rpc_server/srv_srvsvc_nt.c
index 0e699d922b..91f0cefa98 100644
--- a/source3/rpc_server/srv_srvsvc_nt.c
+++ b/source3/rpc_server/srv_srvsvc_nt.c
@@ -1536,7 +1536,7 @@ WERROR _srv_net_share_set_info(pipes_struct *p, SRV_Q_NET_SHARE_SET_INFO *q_u, S
/* Does this share exist ? */
if (snum < 0)
- return WERR_INVALID_NAME;
+ return WERR_NET_NAME_NOT_FOUND;
/* No change to printer shares. */
if (lp_print_ok(snum))