diff options
author | Jeremy Allison <jra@samba.org> | 2000-06-30 01:07:26 +0000 |
---|---|---|
committer | Jeremy Allison <jra@samba.org> | 2000-06-30 01:07:26 +0000 |
commit | eed5e03043f851c299a572f5979f6c52d51b1d11 (patch) | |
tree | 6617158d56ca90c50e4b97b408ea2dc930618514 /source3 | |
parent | d52d29f1b3c93c03182de26aa92f1d3e00968ae7 (diff) | |
download | samba-eed5e03043f851c299a572f5979f6c52d51b1d11.tar.gz samba-eed5e03043f851c299a572f5979f6c52d51b1d11.tar.bz2 samba-eed5e03043f851c299a572f5979f6c52d51b1d11.zip |
Fixed oops with missing MANGLE_PATH directive.
Jeremy.
(This used to be commit fb6b5a964512dec37f85f8de39c0c06f702aabbd)
Diffstat (limited to 'source3')
-rw-r--r-- | source3/rpc_server/srv_spoolss_nt.c | 8 |
1 files changed, 6 insertions, 2 deletions
diff --git a/source3/rpc_server/srv_spoolss_nt.c b/source3/rpc_server/srv_spoolss_nt.c index 7259ccc428..79f6030414 100644 --- a/source3/rpc_server/srv_spoolss_nt.c +++ b/source3/rpc_server/srv_spoolss_nt.c @@ -2605,7 +2605,11 @@ static void fill_printer_driver_info_3(DRIVER_INFO_3 *info, get_short_archi(short_archi, architecture); +#if MANGLE_DRIVER_PATH snprintf(where,sizeof(where)-1,"\\\\%s\\print$\\%s\\%s\\", servername, short_archi, driver.info_3->name); +#else + snprintf(where,sizeof(where)-1,"\\\\%s\\print$\\%s\\", servername, short_archi); +#endif info->version=driver.info_3->cversion; @@ -3502,7 +3506,7 @@ static uint32 enumprinterdrivers_level3(fstring *list, fstring servername, fstri /* check the required size. */ for (i=0; i<*returned; i++) { DEBUGADD(6,("adding driver [%d]'s size\n",i)); - *needed += spoolss_size_printer_driver_info_3(&(driver_info_3[i])); + *needed += spoolss_size_printer_driver_info_3(&driver_info_3[i]); } if (!alloc_buffer_size(buffer, *needed)) { @@ -3513,7 +3517,7 @@ static uint32 enumprinterdrivers_level3(fstring *list, fstring servername, fstri /* fill the buffer with the form structures */ for (i=0; i<*returned; i++) { DEBUGADD(6,("adding form [%d] to buffer\n",i)); - new_smb_io_printer_driver_info_3("", buffer, &(driver_info_3[i]), 0); + new_smb_io_printer_driver_info_3("", buffer, &driver_info_3[i], 0); } for (i=0; i<*returned; i++) |