The Samba-Bugzilla – Bug 5028
Recurse status not transparent to user
Last modified: 2007-10-20 10:41:51 UTC
Unless the debug level is raised above the default, the user has no way of determining whether recursing is switched on or off, and whether the recurse command will switch it off or on. This is annoying, all the more so as the initial state (off) is not explicitly documented. The same is true for the other toggle commands showacls, translate, lowercase and case_sensitive. The patch at the above URL changes these five commands as follows:
- If the command is given without any argument, the option's state is toggled, as was previously the case. Additionally, the new state of the option is printed.
- If the command is followed by "on" or "off", the option is switched on or off, and the new state is printed.
- If the command is followed by "?" or any other argument, the current state is printed.
This allows the options to be enabled or disabled definitely without knowing the current state, and determining the state if necessary. Toggling is still the default, so existing scripts won't break.
I hope this is of interest and am prepared to bring the man page up to date if the patch is accepted.