summaryrefslogtreecommitdiff
path: root/source3
diff options
context:
space:
mode:
Diffstat (limited to 'source3')
-rw-r--r--source3/printing/nt_printing.c10
1 files changed, 7 insertions, 3 deletions
diff --git a/source3/printing/nt_printing.c b/source3/printing/nt_printing.c
index d0005ffc1f..56b6a4c570 100644
--- a/source3/printing/nt_printing.c
+++ b/source3/printing/nt_printing.c
@@ -857,6 +857,7 @@ static uint32 get_a_printer_2_default(NT_PRINTER_INFO_LEVEL_2 **info_ptr, fstrin
int snum;
NT_PRINTER_INFO_LEVEL_2 info;
NT_DEVICEMODE devmode;
+ SMB_STRUCT_STAT sbuf;
ZERO_STRUCT(info);
ZERO_STRUCT(devmode);
@@ -877,9 +878,12 @@ static uint32 get_a_printer_2_default(NT_PRINTER_INFO_LEVEL_2 **info_ptr, fstrin
/*
* put a better system here, please.
*/
- info.secdesc.len = 0; /* convertperms_unix_to_sd(&sbuf, False,
- sbuf.st_mode,
- &info.secdesc.sec); */
+ sbuf.st_mode = 0777;
+ sbuf.st_uid = -1;
+ sbuf.st_gid = -1;
+ info.secdesc.len = convertperms_unix_to_sd(&sbuf, False,
+ 0777,
+ &info.secdesc.sec);
info.secdesc.max_len = info.secdesc.len;
*info_ptr = (NT_PRINTER_INFO_LEVEL_2 *)memdup(&info, sizeof(info));