summaryrefslogtreecommitdiff
path: root/source3/include/local.h
diff options
context:
space:
mode:
authorAndrew Tridgell <tridge@samba.org>1997-12-03 05:08:07 +0000
committerAndrew Tridgell <tridge@samba.org>1997-12-03 05:08:07 +0000
commit7a668a7641cd747455b7a9854dbc208a3e4bc7ef (patch)
tree337d3570bd8160d93ee74c2e3ff139be0db9e4d9 /source3/include/local.h
parent02bc90ea442f5d115df17de0ebd0bbfdf214c1a5 (diff)
downloadsamba-7a668a7641cd747455b7a9854dbc208a3e4bc7ef.tar.gz
samba-7a668a7641cd747455b7a9854dbc208a3e4bc7ef.tar.bz2
samba-7a668a7641cd747455b7a9854dbc208a3e4bc7ef.zip
applied a patch from Norm Jacobs to allow "printcap name = lpstat"
to use lpstat to obtain the printer list on systemV systems. I've now made this the default on all SYSV systems. Jeremy, you were a little worried about the security of this patch. I believe it's OK as the user has no control over the options given to popen() and the pipe is only open for reading. (This used to be commit 6a83de0ae954bb18d3f15382f2b0b3259fedff09)
Diffstat (limited to 'source3/include/local.h')
-rw-r--r--source3/include/local.h9
1 files changed, 9 insertions, 0 deletions
diff --git a/source3/include/local.h b/source3/include/local.h
index ca8d231dcd..c4bdcc80d5 100644
--- a/source3/include/local.h
+++ b/source3/include/local.h
@@ -23,7 +23,16 @@
printcap file is a quick-n-dirty way to allow dynamic access to a subset
of available printers.
*/
+
+#ifndef PRINTCAP_NAME
+#ifdef AIX
+#define PRINTCAP_NAME "/etc/qconfig"
+#elif defined(SYSV)
+#define PRINTCAP_NAME "lpstat"
+#else
#define PRINTCAP_NAME "/etc/printcap"
+#endif
+#endif
/* this affects server level security. With this set (recommended)
samba will do a full NetWkstaUserLogon to confirm that the client