summaryrefslogtreecommitdiffstats
path: root/source3/printing/pcap.c
diff options
context:
space:
mode:
Diffstat (limited to 'source3/printing/pcap.c')
-rw-r--r--source3/printing/pcap.c10
1 files changed, 10 insertions, 0 deletions
diff --git a/source3/printing/pcap.c b/source3/printing/pcap.c
index e9d81953667..9b4b5e4f717 100644
--- a/source3/printing/pcap.c
+++ b/source3/printing/pcap.c
@@ -56,6 +56,9 @@
*
* Modified to call CUPS support if printcap name is set to "cups"
* in smb.conf.
+ *
+ * Modified to call iPrint support if printcap name is set to "iprint"
+ * in smb.conf.
*/
#include "includes.h"
@@ -129,6 +132,13 @@ void pcap_cache_reload(void)
}
#endif
+#ifdef HAVE_IPRINT
+ if (strequal(pcap_name, "iprint")) {
+ pcap_reloaded = iprint_cache_reload();
+ goto done;
+ }
+#endif
+
#if defined(SYSV) || defined(HPUX)
if (strequal(pcap_name, "lpstat")) {
pcap_reloaded = sysv_cache_reload();