mirror of
https://github.com/samba-team/samba.git
synced 2025-02-02 09:47:23 +03:00
werror: replace WERR_BADFILE with WERR_FILE_NOT_FOUND in source3/printing/
Guenther Signed-off-by: Guenther Deschner <gd@samba.org> Reviewed-by: Jeremy Allison <jra@samba.org>
This commit is contained in:
parent
0fc0c6a24f
commit
8ec9d694fa
@ -751,7 +751,7 @@ static uint32_t get_correct_cversion(struct auth_session_info *session_info,
|
||||
nt_status = vfs_file_exist(conn, smb_fname);
|
||||
if (!NT_STATUS_IS_OK(nt_status)) {
|
||||
DEBUG(3,("get_correct_cversion: vfs_file_exist failed\n"));
|
||||
*perr = WERR_BADFILE;
|
||||
*perr = WERR_FILE_NOT_FOUND;
|
||||
goto error_exit;
|
||||
}
|
||||
|
||||
|
@ -197,7 +197,7 @@ static WERROR nt_printer_guid_retrieve_internal(ADS_STRUCT *ads,
|
||||
if (!ADS_ERR_OK(ads_status)) {
|
||||
DEBUG(2, ("Failed to retrieve GUID from DC - %s\n",
|
||||
ads_errstr(ads_status)));
|
||||
return WERR_BADFILE;
|
||||
return WERR_FILE_NOT_FOUND;
|
||||
}
|
||||
|
||||
ZERO_STRUCT(guid);
|
||||
|
@ -161,7 +161,7 @@ static NTSTATUS migrate_internal(TALLOC_CTX *mem_ctx,
|
||||
dbuf.dptr,
|
||||
dbuf.dsize);
|
||||
SAFE_FREE(dbuf.dptr);
|
||||
if (NT_STATUS_EQUAL(status, werror_to_ntstatus(WERR_BADFILE))) {
|
||||
if (NT_STATUS_EQUAL(status, werror_to_ntstatus(WERR_FILE_NOT_FOUND))) {
|
||||
DEBUG(2, ("Skipping secdesc migration for non-existent "
|
||||
"printer: %s\n", secdesc_name));
|
||||
} else if (!NT_STATUS_IS_OK(status)) {
|
||||
|
@ -86,7 +86,7 @@ WERROR spoolss_map_to_os2_driver(TALLOC_CTX *mem_ctx, const char **pdrivername)
|
||||
drivername = *pdrivername;
|
||||
|
||||
if (mapfile[0] == '\0') {
|
||||
return WERR_BADFILE;
|
||||
return WERR_FILE_NOT_FOUND;
|
||||
}
|
||||
|
||||
if (strequal(drivername, get_win_driver())) {
|
||||
|
Loading…
x
Reference in New Issue
Block a user