summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAndreas Schneider <asn@samba.org>2010-04-26 11:52:19 +0200
committerSimo Sorce <idra@samba.org>2010-07-27 10:27:09 -0400
commite517588a2073986ccd0edd76f9e3c865146bf1f4 (patch)
tree121c34ab7dfeda4f340cb9d39ce7473b04f8115b
parent90e96d3ee20caf4aa58ea87a3afc5013f31d0ae4 (diff)
downloadsamba-e517588a2073986ccd0edd76f9e3c865146bf1f4.tar.gz
samba-e517588a2073986ccd0edd76f9e3c865146bf1f4.tar.bz2
samba-e517588a2073986ccd0edd76f9e3c865146bf1f4.zip
s3-spoolss: Set c_setprinter always to 0.
This value is only used for the well known printers list which Samba doesn't implement. Signed-off-by: Jim McDonough <jmcd@samba.org>
-rw-r--r--source3/printing/nt_printing.c2
-rw-r--r--source3/rpc_server/srv_spoolss_nt.c6
2 files changed, 1 insertions, 7 deletions
diff --git a/source3/printing/nt_printing.c b/source3/printing/nt_printing.c
index beb1e45755..82615e19d3 100644
--- a/source3/printing/nt_printing.c
+++ b/source3/printing/nt_printing.c
@@ -605,8 +605,6 @@ bool nt_printing_init(struct messaging_context *msg_ctx)
}
}
- update_c_setprinter(True);
-
/*
* register callback to handle updating printers as new
* drivers are installed
diff --git a/source3/rpc_server/srv_spoolss_nt.c b/source3/rpc_server/srv_spoolss_nt.c
index cc2a35a5bb..71daeb9d59 100644
--- a/source3/rpc_server/srv_spoolss_nt.c
+++ b/source3/rpc_server/srv_spoolss_nt.c
@@ -1713,8 +1713,6 @@ WERROR _spoolss_DeletePrinter(pipes_struct *p,
result = delete_printer_handle(p, r->in.handle);
- update_c_setprinter(false);
-
return result;
}
@@ -3428,7 +3426,7 @@ static WERROR construct_printer_info0(TALLOC_CTX *mem_ctx,
r->last_error = WERR_OK;
r->status = nt_printq_status(status.status);
r->enumerate_network_printers = 0x0;
- r->c_setprinter = get_c_setprinter(); /* monotonically increasing sum of delta printer counts */
+ r->c_setprinter = 0x0;
r->processor_architecture = 0x0;
r->processor_level = 0x6; /* 6 ???*/
r->ref_ic = 0;
@@ -6981,8 +6979,6 @@ static WERROR spoolss_addprinterex_level_2(pipes_struct *p,
return WERR_ACCESS_DENIED;
}
- update_c_setprinter(false);
-
return WERR_OK;
}