Bug 5028 - Recurse status not transparent to user
Recurse status not transparent to user
Status: NEW
Product: Samba 3.0
Classification: Unclassified
Component: smbclient
x86 Linux
: P3 enhancement
: none
Assigned To: Samba Bugzilla Account
Samba QA Contact
Depends on:
  Show dependency treegraph
Reported: 2007-10-20 10:41 UTC by Volker Schatz
Modified: 2007-10-20 10:41 UTC (History)
0 users

See Also:


Note You need to log in before you can comment on or make changes to this bug.
Description Volker Schatz 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.

Regards, Volker