summaryrefslogtreecommitdiff
path: root/source4/ntvfs/print/vfs_print.c
diff options
context:
space:
mode:
Diffstat (limited to 'source4/ntvfs/print/vfs_print.c')
-rw-r--r--source4/ntvfs/print/vfs_print.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/source4/ntvfs/print/vfs_print.c b/source4/ntvfs/print/vfs_print.c
index 30bb530ee9..f9d3235116 100644
--- a/source4/ntvfs/print/vfs_print.c
+++ b/source4/ntvfs/print/vfs_print.c
@@ -24,6 +24,7 @@
#include "includes.h"
#include "libcli/raw/ioctl.h"
#include "ntvfs/ntvfs.h"
+#include "param/param.h"
/*
connect to a share - used when a tree_connect operation comes
@@ -82,7 +83,7 @@ static NTSTATUS print_ioctl(struct ntvfs_module_context *ntvfs,
p = (char *)io->ioctl.out.blob.data;
SSVAL(p,0, 1 /* REWRITE: fsp->rap_print_jobid */);
- push_string(p+2, lp_netbios_name(), 15, STR_TERMINATE|STR_ASCII);
+ push_string(p+2, lp_netbios_name(global_loadparm), 15, STR_TERMINATE|STR_ASCII);
push_string(p+18, ntvfs->ctx->config->name, 13, STR_TERMINATE|STR_ASCII);
return NT_STATUS_OK;
}