1
0
mirror of https://github.com/samba-team/samba.git synced 2025-06-17 15:17:09 +03:00

19 Commits

Author SHA1 Message Date
Kai Blin
92a9c6c56f popt: Use SMB_CONF_PATH environment var if no other configfile is set.
Now --configfile (or -s) will have precedence, if that's not given
SMB_CONF_PATH is checked, otherwise the $(CONFIGDIR)/smb.conf default
value is used.

Thanks to Michael for his comments.
2008-02-04 17:41:23 +01:00
Jeremy Allison
52dc5eaef2 Remove the char[1024] strings from dynconfig. Replace
them with malloc'ing accessor functions. Should save a
lot of static space :-).
Jeremy.
2007-12-10 11:30:37 -08:00
Jeremy Allison
d690ba7710 These should be char *, but replace them with [1024] for now
to eliminate the pstring data type.
Jeremy
2007-12-06 19:01:27 -08:00
Gerald (Jerry) Carter
b7d2fadbef Patch from Debian Samba package maintainers:
Patch 1 of 3:

- Patch 1 adds the new variables
- Patch 2 makes uses of them for files belonging to the "state" path
  and the "code pages" path
  This patch seemed more easily acceptable, which explains why we
  separated it from patch 3
- Patch 3 reassigns files to the "cache" path. Indeed all "debatable"
  changes have been moved to that one

The point is adding:

- a path for non discardable state data: basically all TDB files
  that may need to be backed up
- a path for shared data: mostly codepage stuff
- a path for cache data to host files such as
  browse.dat, printers.tbd, <printer>.tdb

All these are currently mixed in "libdir" (${prefix}/lib/samba by default).
The patch keeps these new paths to point to ${prefix}/lib/samba by default
and does therefore not change the software behaviour.  Used alone, it just
adds unused variables...so it can safely be used in sources without any
behaviour change and no impact on Samba developers work.
2007-11-01 13:00:10 -04:00
Andrew Tridgell
b0132e94fc r23784: use the GPLv3 boilerplate as recommended by the FSF and the license text 2007-10-10 12:28:22 -05:00
Jeremy Allison
407e6e695b r23779: Change from v2 or later to v3 or later.
Jeremy.
2007-10-10 12:28:20 -05:00
James Peach
bf3b71c845 r15848: Introduce commandline options to set the remainder of the parameters in
dynconfig.c. This is mainly useful for test harness scripts, hence the
lack of short options.
2007-10-10 11:17:11 -05:00
Jim McDonough
15d2bc4785 Fix copyright statements for various pieces of Anthony Liguori's work. -
Jim McDonough
d9c485b010 merge from HEAD - enable dynamic RPC modules -
Tim Potter
d3998307ad Merge a bunch of trivial changes from HEAD. The difference remaining
should actual functional differences between HEAD and 3.0.

 - Mostly reformatting
 - Removal of unecessary #include "smb.h"
 - Merge of dyn_DRIVERFILE removal
 - Silly bug fix for python code
-
Andrew Tridgell
03ac082dcb updated the 3.0 branch from the head branch - ready for alpha18 -
Tim Potter
6a58c9bd06 Removed version number from file header.
Changed "SMB/Netbios" to "SMB/CIFS" in file header.
-
Martin Pool
d51ef6bfa3 Move all other paths into dynconfig -
Martin Pool
988fe772a3 dyn_LOCKDIR should be const because it's never modified directly --
it's just copied in to the parameter table and optionally overridden
there.
-
Martin Pool
9b6667aa19 oopsum. -
Martin Pool
868999ad3c LIBDIR and LOCKDIR are dynamically configured too. -
Martin Pool
a779710fff LMHOSTSFILE is now dynamically configured too. -
Martin Pool
79ec88f0da Store some path names in global variables initialized to configure
default, rather than in preprocessor macros.
-
Martin Pool
f54c64babd Source file defining global variables for configuration paths. This
has two purposes:

 - If ./configure is re-run to configure Samba for a new set of path
   or prefix, then when Samba is re-built it really will use the new
   paths.

 - This is a step towards making sure all programs can be consistently
   told to use a different configuration file or prefix directory,
   which is required for testing.  Possibly not true at the moment.
-