summaryrefslogtreecommitdiff
path: root/source3/rpc_server/srv_spoolss_nt.c
diff options
context:
space:
mode:
authorJeremy Allison <jra@samba.org>2000-06-01 21:00:37 +0000
committerJeremy Allison <jra@samba.org>2000-06-01 21:00:37 +0000
commitb9fedcb2de5612bdb4e763fe0788e1a4a9c16d33 (patch)
tree088f062c58a4fe3d5a57b98b279ae8bf97bf2cb5 /source3/rpc_server/srv_spoolss_nt.c
parent61ab5b46cfb93939651b4426016845a035315bf7 (diff)
downloadsamba-b9fedcb2de5612bdb4e763fe0788e1a4a9c16d33.tar.gz
samba-b9fedcb2de5612bdb4e763fe0788e1a4a9c16d33.tar.bz2
samba-b9fedcb2de5612bdb4e763fe0788e1a4a9c16d33.zip
param/loadparm.c: Looks like someone ran indent on this !
passdb/smbpass.c: Insure uninitialized memory reference fix. printing/nt_printing.c: rpc_server/srv_spoolss_nt.c: Insure memory leak fixes. smbd/unix_acls.c: Shadow ref fix. Jeremy. (This used to be commit d175d3ebefc053e9badd91ca5f2d8bd03eb6705d)
Diffstat (limited to 'source3/rpc_server/srv_spoolss_nt.c')
-rw-r--r--source3/rpc_server/srv_spoolss_nt.c6
1 files changed, 4 insertions, 2 deletions
diff --git a/source3/rpc_server/srv_spoolss_nt.c b/source3/rpc_server/srv_spoolss_nt.c
index 424e1f5e95..f181585c84 100644
--- a/source3/rpc_server/srv_spoolss_nt.c
+++ b/source3/rpc_server/srv_spoolss_nt.c
@@ -3862,6 +3862,7 @@ static uint32 modify_driver_heirarchy(NT_PRINTER_DRIVER_INFO_LEVEL *driver, uint
pstring path_old;
pstring path_new;
pstring short_archi;
+
/* find_service is an smbd-specific function call */
int snum = find_service("print$");
char *model = NULL;
@@ -3886,10 +3887,11 @@ static uint32 modify_driver_heirarchy(NT_PRINTER_DRIVER_INFO_LEVEL *driver, uint
(unsigned int)sys_getpid());
slprintf(path_new, sizeof(path_new)-1, "%s/%s/%s", lp_pathname(snum), short_archi, model);
- DEBUG(10,("_spoolss_addprinterdriver: old_path=%s, new_path=%s\n",
+ DEBUG(10,("modify_driver_heirarchy: old_path=%s, new_path=%s\n",
path_old, path_new ));
if (dos_rename(path_old, path_new) == -1) {
- DEBUG(0,("modify_driver_heirarchy: rename failed (%s)\n", strerror(errno) ));
+ DEBUG(0,("modify_driver_heirarchy: rename from %s to %s failed (%s)\n",
+ path_old, path_new, strerror(errno) ));
/* We need to clean up here.... - how ? */
return ERROR_ACCESS_DENIED; /* We need a generic mapping from NT errors here... */
}