1
0
mirror of https://github.com/samba-team/samba.git synced 2025-01-11 05:18:09 +03:00
samba-mirror/source4/param
Andrew Tridgell b540bc85ff r23696: added the create mask and related share permissions options to Samba4,
using the new share_int_option() code from Simo

speaking of which, this is the first time I've looked closely at the
share_classic.c code. It is absolutely and completely braindead and
broken. Whatever drugs Simo was on at the time, he better not try to
cross a border with them on him!

Problems with it:

 - if you actually set a value, it gets ignored, and the defvalue gets
   used instead ('ret' is never returned). If you don't set a value,
   then defvalue gets returned too. Sound useful?

 - it means we now have to list parameters in source/param/ in lots
   and lots of places, all of which have to match exactly. code like
   this is supposed to reduce the likelyhood of errors, not increase
   it!

 - code which has a long line of if() statements with strcmp() should
   cause your fingers to burn on the keyboard when you type it
   in. That's what structure lists are for. Strangely enough, we have
   all the info in loadparm.c in a structure list, but instead it gets
   replicated in share_classic.c in this strange if() strcmp() form

expect some changes to this code shortly. I'll need a calming cup of
tea first though :-)
(This used to be commit 19a9fc2f44)
2007-10-10 14:59:03 -05:00
..
config.mk r22762: Some ldb_map changes: 2007-10-10 14:52:15 -05:00
generic.c r17930: Merge noinclude branch: 2007-10-10 14:16:54 -05:00
loadparm.c r23696: added the create mask and related share permissions options to Samba4, 2007-10-10 14:59:03 -05:00
loadparm.h r23696: added the create mask and related share permissions options to Samba4, 2007-10-10 14:59:03 -05:00
param.h r14844: Support a stdbool.h replacement in lib/replace/ 2007-10-10 13:59:41 -05:00
params.c r15573: Fix build of systems that have iconv headers in non-standard locations 2007-10-10 14:05:58 -05:00
secrets.c r20806: make it possible to configure the secrets.ldb url 2007-10-10 14:43:33 -05:00
secrets.h r19573: Move secrets.o into param/ (subsystems haven't been integrated yet). 2007-10-10 14:24:55 -05:00
share_classic.c r23696: added the create mask and related share permissions options to Samba4, 2007-10-10 14:59:03 -05:00
share_ldb.c r22546: use the same error codes in both share backends 2007-10-10 14:51:41 -05:00
share.c r22328: Add initial testsuite for share code. 2007-10-10 14:51:03 -05:00
share.h r23696: added the create mask and related share permissions options to Samba4, 2007-10-10 14:59:03 -05:00
util.c r20988: Call out to Heimdal's krb5.conf processing to configure many aspects 2007-10-10 14:44:18 -05:00