mirror of
https://github.com/samba-team/samba.git
synced 2025-01-31 01:48:16 +03:00
smbcontrol in non-interactive mode was returning True for success --
need to invert this to give the shell 0.
This commit is contained in:
parent
53f1c0298b
commit
ecc624067c
@ -451,7 +451,10 @@ static BOOL do_command(char *dest, char *msg_name, int iparams, char **params)
|
||||
|
||||
if (!interactive) {
|
||||
if (argc < 2) usage(True);
|
||||
return (do_command(argv[0],argv[1], argc-2, argc > 2 ? &argv[2] : 0));
|
||||
/* Need to invert sense of return code -- samba
|
||||
* routines mostly return True==1 for success, but
|
||||
* shell needs 0. */
|
||||
return ! do_command(argv[0],argv[1], argc-2, argc > 2 ? &argv[2] : 0);
|
||||
}
|
||||
|
||||
while (True) {
|
||||
|
Loading…
x
Reference in New Issue
Block a user