Opened 9 years ago
Closed 8 years ago
#267 closed defect (invalid)
testparm.exe does not show/create the proper current smb.conf
Reported by: | Herwig Bauernfeind | Owned by: | |
---|---|---|---|
Priority: | minor | Milestone: | |
Component: | Samba Server Core | Version: | Server 3.6.x |
Keywords: | testparm log level | Cc: |
Description
testparm.exe can be used to create a syntactically correct smb.conf by redirecting the output into a file, either with changed value only, or with complete settings (using -v switch).
However, it fails to write proper log level into the file, because no matter what log level is set in the original file, the value in the new file is either 2 (using -v switch) or not set (as 2 is default).
I noticed when trying to implement log level setting in smbmon.exe. The bug is obviously older because I remeber seeing a "vanishing" log level setting with sscc.exe (which uses a similar technique to make sure smb.conf is syntactically correct).
Change History (2)
comment:1 by , 8 years ago
comment:2 by , 8 years ago
Resolution: | → invalid |
---|---|
Status: | new → closed |
this is working as designed. testparm needs a -d level, else it's always set to loglevel 2.
ok, this is reproducible on a second machine and must have crept in with the latest security patches from Samba - testparm from "normal" 3.6.25 works.