summaryrefslogtreecommitdiff
path: root/source3/smbd
diff options
context:
space:
mode:
Diffstat (limited to 'source3/smbd')
-rw-r--r--source3/smbd/lanman.c2
-rw-r--r--source3/smbd/nttrans.c2
2 files changed, 2 insertions, 2 deletions
diff --git a/source3/smbd/lanman.c b/source3/smbd/lanman.c
index c84812cb83..fe3516ee9d 100644
--- a/source3/smbd/lanman.c
+++ b/source3/smbd/lanman.c
@@ -933,7 +933,7 @@ static BOOL api_DosPrintQGetInfo(connection_struct *conn,
* in order to support lanman style printing with Win NT/2k
* clients --jerry
*/
- if (!mdrcnt && lp_lanman_printing_only())
+ if (!mdrcnt && lp_disable_spoolss())
desc.errcode = ERRbuftoosmall;
*rdata_len = desc.usedlen;
diff --git a/source3/smbd/nttrans.c b/source3/smbd/nttrans.c
index d342e44ca4..f0195fc0dd 100644
--- a/source3/smbd/nttrans.c
+++ b/source3/smbd/nttrans.c
@@ -474,7 +474,7 @@ static int nt_open_pipe(char *fname, connection_struct *conn,
/* See if it is one we want to handle. */
- if (lp_lanman_printing_only() && strequal(fname, "\\spoolss"))
+ if (lp_disable_spoolss() && strequal(fname, "\\spoolss"))
return(ERROR(ERRSRV,ERRaccess));
for( i = 0; known_nt_pipes[i]; i++ )