The Samba-Bugzilla – Attachment 17786 Details for
Bug 15321
Printer driver upload not "case-insensitive" when replacing older versions
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Requests
|
Help
|
New Account
|
Log In
[x]
|
Forgot Password
Login:
[x]
[patch]
nt_printing_move_driver_file_to_download_area.patch
nt_printing_move_driver_file_to_download_area.patch (text/plain), 1.01 KB, created by
Felix Botner
on 2023-03-02 09:39:32 UTC
(
hide
)
Description:
nt_printing_move_driver_file_to_download_area.patch
Filename:
MIME Type:
Creator:
Felix Botner
Created:
2023-03-02 09:39:32 UTC
Size:
1.01 KB
patch
obsolete
>diff --git a/source3/printing/nt_printing.c b/source3/printing/nt_printing.c >index 1e35e017fb2..f1846afe894 100644 >--- a/source3/printing/nt_printing.c >+++ b/source3/printing/nt_printing.c >@@ -1442,15 +1442,17 @@ static WERROR move_driver_file_to_download_area(TALLOC_CTX *mem_ctx, > goto out; > } > >- /* Setup a synthetic smb_filename struct */ >- smb_fname_new = talloc_zero(mem_ctx, struct smb_filename); >- if (!smb_fname_new) { >- ret = WERR_NOT_ENOUGH_MEMORY; >+ /* convert filename to overwrite new name regardless of case */ >+ status = driver_unix_convert(conn, new_name, &smb_fname_new); >+ if (!NT_STATUS_IS_OK(status)) { >+ DEBUG(0,("move_driver_file_to_download_area: Unable " >+ "to convert new file name [%s]: %s\n", >+ new_name, >+ nt_errstr(status))); >+ ret = WERR_APP_INIT_FAILURE; > goto out; > } > >- smb_fname_new->base_name = new_name; >- > DEBUG(10,("move_driver_file_to_download_area: copying '%s' to " > "'%s'\n", smb_fname_old->base_name, > smb_fname_new->base_name));
You cannot view the attachment while viewing its details because your browser does not support IFRAMEs.
View the attachment on a separate page
.
View Attachment As Raw
Actions:
View
Attachments on
bug 15321
: 17786