summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorGünther Deschner <gd@samba.org>2015-12-03 15:24:29 +0100
committerJeremy Allison <jra@samba.org>2016-09-28 00:04:24 +0200
commit7d54fde08fbb6cd53b008a13feb14d5be598523f (patch)
treea233f5006118fb8f7db8a106ede06015b8e934f0
parenta2cacf1b49a396f57c99b79309097d6476a3e000 (diff)
downloadsamba-7d54fde08fbb6cd53b008a13feb14d5be598523f.tar.gz
werror: replace WERR_OBJECT_PATH_INVALID with WERR_BAD_PATHNAME in source3/rpc_server/
Guenther Signed-off-by: Guenther Deschner <gd@samba.org> Reviewed-by: Jeremy Allison <jra@samba.org>
-rw-r--r--source3/rpc_server/srvsvc/srv_srvsvc_nt.c4
-rw-r--r--source3/rpc_server/winreg/srv_winreg_nt.c4
2 files changed, 4 insertions, 4 deletions
diff --git a/source3/rpc_server/srvsvc/srv_srvsvc_nt.c b/source3/rpc_server/srvsvc/srv_srvsvc_nt.c
index 83c3267c79d..18e924bc211 100644
--- a/source3/rpc_server/srvsvc/srv_srvsvc_nt.c
+++ b/source3/rpc_server/srvsvc/srv_srvsvc_nt.c
@@ -1862,7 +1862,7 @@ WERROR _srvsvc_NetShareSetInfo(struct pipes_struct *p,
if (!(path = valid_share_pathname(p->mem_ctx, pathname ))) {
DEBUG(5,("_srvsvc_NetShareSetInfo: invalid pathname %s\n",
pathname ));
- return WERR_OBJECT_PATH_INVALID;
+ return WERR_BAD_PATHNAME;
}
/* Ensure share name, pathname and comment don't contain '"' characters. */
@@ -2064,7 +2064,7 @@ WERROR _srvsvc_NetShareAdd(struct pipes_struct *p,
/* Check if the pathname is valid. */
if (!(path = valid_share_pathname(p->mem_ctx, pathname))) {
- return WERR_OBJECT_PATH_INVALID;
+ return WERR_BAD_PATHNAME;
}
ret = sys_lstat(path, &st, false);
diff --git a/source3/rpc_server/winreg/srv_winreg_nt.c b/source3/rpc_server/winreg/srv_winreg_nt.c
index a8d0eb0ec79..3cfd009931f 100644
--- a/source3/rpc_server/winreg/srv_winreg_nt.c
+++ b/source3/rpc_server/winreg/srv_winreg_nt.c
@@ -705,7 +705,7 @@ WERROR _winreg_RestoreKey(struct pipes_struct *p,
"\"%s\"\n", regkey->key->name, fname));
if ((snum = validate_reg_filename(p->mem_ctx, &fname)) == -1)
- return WERR_OBJECT_PATH_INVALID;
+ return WERR_BAD_PATHNAME;
/* user must posses SeRestorePrivilege for this this proceed */
@@ -745,7 +745,7 @@ WERROR _winreg_SaveKey(struct pipes_struct *p,
regkey->key->name, fname));
if ((snum = validate_reg_filename(p->mem_ctx, &fname)) == -1 )
- return WERR_OBJECT_PATH_INVALID;
+ return WERR_BAD_PATHNAME;
DEBUG(2,("_winreg_SaveKey: Saving [%s] to %s in share %s\n",
regkey->key->name, fname, lp_servicename(talloc_tos(), snum) ));