From 3f657f41cc7a71b3d5b769b31be030ebf543a645 Mon Sep 17 00:00:00 2001 From: Günther Deschner Date: Wed, 15 Jun 2005 12:43:36 +0000 Subject: 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) --- source3/include/doserr.h | 3 +++ source3/libsmb/doserr.c | 1 + source3/rpc_server/srv_srvsvc_nt.c | 2 +- 3 files changed, 5 insertions(+), 1 deletion(-) 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)) -- cgit