1
0
mirror of https://github.com/samba-team/samba.git synced 2024-12-23 17:34:34 +03:00
samba-mirror/lib
Quentin Gibeaux 3c6ea3293c lib/param: handle (ignore) substitution variable in smb.conf
BUG: https://bugzilla.samba.org/show_bug.cgi?id=10722

The function handle_include returns false when trying to include
files that have a substitution variable in filename (like %U),
this patch makes handle_include to ignore this case, to make
samba-tool work when there is such include in samba's configuration.

Error was :
	root@ubuntu:/usr/local/samba# grep 'include.*%U' etc/smb.conf
	include = %U.conf
	root@ubuntu:/usr/local/samba# ./bin/samba-tool user list
	Can't find include file %U.conf
	ERROR(runtime): uncaught exception - Unable to load default file

Signed-off-by: Quentin Gibeaux <qgibeaux@iris-tech.fr>
Reviewed-by: Michael Adam <obnox@samba.org>
Reviewed-by: Jeremy Allison <jra@samba.org>

Autobuild-User(master): Jeremy Allison <jra@samba.org>
Autobuild-Date(master): Wed Dec  9 02:05:30 CET 2015 on sn-devel-104
2015-12-09 02:05:30 +01:00
..
addns lib: Fix CID 1273234 Untrusted value as argument 2015-06-23 22:12:08 +02:00
afs waf: add --with-fake-kaserver option 2014-06-04 20:09:38 +02:00
async_req lib/async_req: do not install async_connect_send_test. 2015-12-01 17:41:19 +01:00
compression lib/compression/tests: add missing #include "torture/local/proto.h" 2014-04-02 09:03:44 +02:00
crypto vfs: Remove smb_traffic_analyzer 2015-11-11 00:23:35 +01:00
dbwrap dbwrap_rbt: fix modifying the db during traverse 2015-11-27 10:10:18 +01:00
krb5_wrap krb5_wrap: Fix picky const compiler warnings 2015-11-23 15:17:18 +01:00
ldb ldb: Move ldb_(un)pack_data into ldb_module.h for testing 2015-12-04 06:08:29 +01:00
ldb-samba Fix propagation of LDB errors through TDB. 2015-12-04 06:08:29 +01:00
nss_wrapper build: Build *_wrapper without -DNDEBUG for in-tree use 2015-10-16 16:36:22 +02:00
param lib/param: handle (ignore) substitution variable in smb.conf 2015-12-09 02:05:30 +01:00
replace libreplace: Only check for malloc.h if needed 2015-11-19 07:01:09 +01:00
resolv_wrapper build: Build *_wrapper without -DNDEBUG for in-tree use 2015-10-16 16:36:22 +02:00
smbconf lib/smbconf: remove const warning 2014-11-14 23:27:05 +01:00
socket Fix bug # 9666 - Broken filtering of link-local addresses. 2013-02-28 20:56:57 +01:00
socket_wrapper build: Build *_wrapper without -DNDEBUG for in-tree use 2015-10-16 16:36:22 +02:00
talloc talloc: version 2.1.5 2015-11-05 18:04:23 +01:00
tdb Fix various spelling errors 2015-11-06 13:43:45 +01:00
tdb_wrap tdb_wrap: Use a struct initializer 2015-07-23 14:39:18 +02:00
tdr lib/tdr/tests: add missing #include "torture/local/proto.h" 2014-04-02 09:03:44 +02:00
tevent Set LD_LIBRARY_PATH during tests. 2015-11-18 21:40:25 +01:00
texpect texpect: undefined symbol rep_fprintf 2015-10-22 14:28:17 +02:00
torture lib/torture: add torture_assert_hresult_{equal,ok} macros. 2015-07-31 01:55:28 +02:00
tsocket lib/tsocket: fix non-blockging connect() error handling 2015-10-21 23:13:17 +02:00
uid_wrapper uwrap: Bump version to 1.2.0 2015-11-05 12:30:02 +01:00
util lib: Fix an array subscript is above array bounds error 2015-12-01 00:38:23 +01:00
README subunit: Update to newer upstream version. 2010-03-29 18:05:29 +02:00
wscript_build Remove 'external' python module support code - use the third_party directory instead. 2015-03-06 04:41:48 +01:00

compression - Various compression algorithms (MSZIP, lzxpress)
dnspython - Python module for working with DNS.
nss_wrapper - Wrapper for the user and group NSS API allowing the use 
              of other data sources.
popt - Command-line option parsing library
replace - Provides replacements for standard (POSIX, C99) functions 
          not provided by the host platform.
socket_wrapper - Wrapper library allowing TCP/IP traffic to be redirected 
                 over Unix domain sockets.
subunit - Utilities and bindings for working with the Subunit test result 
          reporting protocol.
talloc - Hierarchical pool based memory allocator 
tdb - Simple but fast key/value database library, supporting multiple writers
torture - Simple unit testing helper library