summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-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))