Bug 12364 - smbcquotas loads smb.conf only from default location
smbcquotas loads smb.conf only from default location
Product: Samba 4.1 and newer
Classification: Unclassified
Component: Tools
All All
: P5 minor
: ---
Assigned To: Karolin Seeger
Samba QA Contact
Depends on:
  Show dependency treegraph
Reported: 2016-10-05 07:44 UTC by Uri Simchoni
Modified: 2016-10-19 07:57 UTC (History)
3 users (show)

See Also:

git-am fix for 4.4.next and 4.5.next (1.79 KB, patch)
2016-10-06 19:50 UTC, Uri Simchoni
asn: review+
jra: review+

Note You need to log in before you can comment on or make changes to this bug.
Description Uri Simchoni 2016-10-05 07:44:51 UTC
Setting an alternate location, via the -s command line option or via the SMB_CONF_PATH environment variable, does not work - the program always loads smb.conf from the location set at build time.

For Samba development purposes, this may cause "make test" to fail since the selftest suite tries to create an isolated environment, and this bug causes smbcquotas to peek outside the env.
Comment 1 Uri Simchoni 2016-10-06 19:50:40 UTC
Created attachment 12550 [details]
git-am fix for 4.4.next and 4.5.next

A blackbox test that uses smbcquotas has been added in 4.4 release, therefore this fix needs to be backported to 4.4 and 4.5 in order to prevent selftest failures on those branches.
Comment 2 Jeremy Allison 2016-10-06 23:14:08 UTC
Re-assigning to Karolin for inclusion in 4.5.next, 4.4.next.
Comment 3 Karolin Seeger 2016-10-19 07:57:54 UTC
(In reply to Jeremy Allison from comment #2)
Pushed to autobuild-v4-{5,4}-test.