summaryrefslogtreecommitdiff
path: root/source3/rpc_client
diff options
context:
space:
mode:
authorGünther Deschner <gd@samba.org>2015-12-03 15:24:11 +0100
committerJeremy Allison <jra@samba.org>2016-09-28 00:04:17 +0200
commit3af16e4abdb6787dcda9306e5e43bee51f963f78 (patch)
treed0e39942ae538fae9dda595f0a5e5d6adaf4578e /source3/rpc_client
parent22a514f9929e830f0484182cc5f29b19bd6421f2 (diff)
downloadsamba-3af16e4abdb6787dcda9306e5e43bee51f963f78.tar.gz
werror: replace WERR_BADFILE with WERR_FILE_NOT_FOUND in source3/rpc_client/
Guenther Signed-off-by: Guenther Deschner <gd@samba.org> Reviewed-by: Jeremy Allison <jra@samba.org>
Diffstat (limited to 'source3/rpc_client')
-rw-r--r--source3/rpc_client/cli_winreg_spoolss.c16
1 files changed, 8 insertions, 8 deletions
diff --git a/source3/rpc_client/cli_winreg_spoolss.c b/source3/rpc_client/cli_winreg_spoolss.c
index 90accd41854..393fa2c65ed 100644
--- a/source3/rpc_client/cli_winreg_spoolss.c
+++ b/source3/rpc_client/cli_winreg_spoolss.c
@@ -608,7 +608,7 @@ WERROR winreg_create_printer(TALLOC_CTX *mem_ctx,
if (W_ERROR_IS_OK(result)) {
DEBUG(2, ("winreg_create_printer: Skipping, %s already exists\n", path));
goto done;
- } else if (W_ERROR_EQUAL(result, WERR_BADFILE)) {
+ } else if (W_ERROR_EQUAL(result, WERR_FILE_NOT_FOUND)) {
DEBUG(2, ("winreg_create_printer: Creating default values in %s\n", path));
} else if (!W_ERROR_IS_OK(result)) {
DEBUG(0, ("winreg_create_printer: Could not open key %s: %s\n",
@@ -1619,7 +1619,7 @@ static WERROR winreg_get_secdesc(TALLOC_CTX *mem_ctx,
&hive_hnd,
&key_hnd);
if (!W_ERROR_IS_OK(result)) {
- if (W_ERROR_EQUAL(result, WERR_BADFILE)) {
+ if (W_ERROR_EQUAL(result, WERR_FILE_NOT_FOUND)) {
goto create_default;
}
goto done;
@@ -1635,7 +1635,7 @@ static WERROR winreg_get_secdesc(TALLOC_CTX *mem_ctx,
result = ntstatus_to_werror(status);
}
if (!W_ERROR_IS_OK(result)) {
- if (W_ERROR_EQUAL(result, WERR_BADFILE)) {
+ if (W_ERROR_EQUAL(result, WERR_FILE_NOT_FOUND)) {
if (is_valid_policy_hnd(&key_hnd)) {
dcerpc_winreg_CloseKey(winreg_handle,
@@ -2413,7 +2413,7 @@ WERROR winreg_delete_printer_key(TALLOC_CTX *mem_ctx,
&key_hnd);
if (!W_ERROR_IS_OK(result)) {
/* key doesn't exist */
- if (W_ERROR_EQUAL(result, WERR_BADFILE)) {
+ if (W_ERROR_EQUAL(result, WERR_FILE_NOT_FOUND)) {
result = WERR_OK;
goto done;
}
@@ -2750,7 +2750,7 @@ WERROR winreg_printer_enumforms1(TALLOC_CTX *mem_ctx,
&key_hnd);
if (!W_ERROR_IS_OK(result)) {
/* key doesn't exist */
- if (W_ERROR_EQUAL(result, WERR_BADFILE)) {
+ if (W_ERROR_EQUAL(result, WERR_FILE_NOT_FOUND)) {
result = WERR_OK;
goto done;
}
@@ -2898,7 +2898,7 @@ WERROR winreg_printer_deleteform1(TALLOC_CTX *mem_ctx,
if (!W_ERROR_IS_OK(result)) {
DEBUG(0, ("winreg_printer_deleteform1: Could not open key %s: %s\n",
TOP_LEVEL_CONTROL_FORMS_KEY, win_errstr(result)));
- if (W_ERROR_EQUAL(result, WERR_BADFILE)) {
+ if (W_ERROR_EQUAL(result, WERR_FILE_NOT_FOUND)) {
result = WERR_INVALID_FORM_NAME;
}
goto done;
@@ -2918,7 +2918,7 @@ WERROR winreg_printer_deleteform1(TALLOC_CTX *mem_ctx,
goto done;
}
- if (W_ERROR_EQUAL(result, WERR_BADFILE)) {
+ if (W_ERROR_EQUAL(result, WERR_FILE_NOT_FOUND)) {
result = WERR_INVALID_FORM_NAME;
}
@@ -3824,7 +3824,7 @@ WERROR winreg_del_driver(TALLOC_CTX *mem_ctx,
&key_hnd);
if (!W_ERROR_IS_OK(result)) {
/* key doesn't exist */
- if (W_ERROR_EQUAL(result, WERR_BADFILE)) {
+ if (W_ERROR_EQUAL(result, WERR_FILE_NOT_FOUND)) {
result = WERR_OK;
goto done;
}