summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorLuke Leighton <lkcl@samba.org>2000-05-27 02:27:44 +0000
committerLuke Leighton <lkcl@samba.org>2000-05-27 02:27:44 +0000
commitb673d5f7970e749c6f975bb3fb084334212ae361 (patch)
tree2a1c638e8949beeb8ae08ec6756281d6b92829a3
parente01fb48737016ae4474af3f6f0937552e1c2b8e7 (diff)
downloadsamba-b673d5f7970e749c6f975bb3fb084334212ae361.tar.gz
samba-b673d5f7970e749c6f975bb3fb084334212ae361.tar.bz2
samba-b673d5f7970e749c6f975bb3fb084334212ae361.zip
dummy trash in secdesc.
(This used to be commit 56c2dbbf813e1dc120d199b173fd462c658572a0)
-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));