1
0
mirror of https://github.com/samba-team/samba.git synced 2024-12-31 17:18:04 +03:00
Commit Graph

15 Commits

Author SHA1 Message Date
Volker Lendecke
d7208577f2 Fix a type-punned warning 2009-04-23 14:35:50 +02:00
Tim Prouty
9b0df441e1 s3: Fix incompatible type warnings 2009-03-01 16:40:17 -08:00
Tim Prouty
fb37f15600 Cleanup size_t return values in callers of convert_string_allocate
This patch is the second iteration of an inside-out conversion to cleanup
functions in charcnv.c returning size_t == -1 to indicate failure.
(This used to be commit 6b189dabc5)
2008-05-20 22:40:13 +02:00
Michael Adam
2ca280d551 registry: add support for REG_MULTI_SZ to registry_push_value().
This enables us to fetch multi_sz values from registry...

Michael
(This used to be commit a8cedfef27)
2008-04-10 01:18:10 +02:00
Günther Deschner
6334c7cc5f r25417: Use DBGC_REGISTRY class.
Guenther
(This used to be commit 43ca04918a)
2007-10-10 12:31:04 -05:00
Michael Adam
f71a4fa3af r24610: Add a debug message that the workaround has been activated...
(This used to be commit a12f3bf6e9)
2007-10-10 12:30:10 -05:00
Michael Adam
1523103164 r24609: Fix the fix of r23668 for win2k giving one zero byte
instead of a 2-byte zero character. I can't recall what
rode me when I put that "2" there. But now I think I
have got it right... :-)

Michael
(This used to be commit fa010bef11)
2007-10-10 12:30:10 -05:00
Günther Deschner
e14d97bd10 r24023: Correctly support REG_BINARY in registry_push_value() and
registry_pull_value().

Guenther
(This used to be commit 6a3c44fd99)
2007-10-10 12:28:57 -05:00
Andrew Tridgell
153cfb9c83 r23801: The FSF has moved around a lot. This fixes their Mass Ave address.
(This used to be commit 87c91e4362)
2007-10-10 12:28:27 -05:00
Jeremy Allison
d824b98f80 r23779: Change from v2 or later to v3 or later.
Jeremy.
(This used to be commit 407e6e695b)
2007-10-10 12:28:20 -05:00
Volker Lendecke
1a7eb52aee r23756: Fix Coverity id 388
(This used to be commit 91af086823)
2007-10-10 12:23:52 -05:00
Jeremy Allison
56f6f58df2 r23673: Check for integer wrap on incoming data.
Jeremy.
(This used to be commit 77a46c7aee)
2007-10-10 12:23:45 -05:00
Michael Adam
b3b83941d8 r23669: Move a variable into the only block where it is used.
(This used to be commit 82be4137b7)
2007-10-10 12:23:44 -05:00
Michael Adam
7a3f98e508 r23668: When creating a new string value, win2k regedit delivers
one byte of data despite characters being two-byte.

This modifies registry_pull_value, to change the data
to the correct two-byte version of the empty string,
(as delivered by winxp), when only one byte of data is
received.

Michael
(This used to be commit a4c2b20296)
2007-10-10 12:23:44 -05:00
Michael Adam
6090601c8b r23485: This checkin consists mostly of refactorings in preparation of the
activation of global registry options in loadparm.c, mainly to
extract functionality from net_conf.c to be made availabel elsewhere
and to minimize linker dependencies.

In detail:

* move functions registry_push/pull_value from lib/util_reg.c to new file
  lib/util_reg_api.c

* create a fake user token consisting of builtin administrators sid and
  se_disk_operators privilege by hand instead of using get_root_nt_token()
  to minimize linker deps for bin/net.

  + new function registry_create_admin_token() in new lib/util_reg_smbconf.c
  + move dup_nt_token from auth/token_util.c to new file lib/util_nttoken.c
  + adapt net_conf.c and Makefile.in accordingly.

* split lib/profiles.c into two parts: new file lib/profiles_basic.c
  takes all the low level mask manipulation and format conversion functions
  (se_priv, privset, luid). the privs array is completely hidden from
  profiles.c by adding some access-functions. some mask-functions are not
  static anymore.

  Generally, SID- and LUID-related stuff that has more dependencies
  is kept in lib/profiles.c

* Move initialization of regdb from net_conf.c into a function
  registry_init_regdb() in lib/util_reg_smbconf.c.

Michael
(This used to be commit efd3e2bfb7)
2007-10-10 12:23:21 -05:00