-BEGIN PGP SIGNED MESSAGE-
Hash: SHA1
On Thu, 13 Feb 2003, Martin Pool wrote:
rpcclient.c/process_cmd has
if (cmd[strlen(cmd) - 1] == '\n')
cmd[strlen(cmd) - 1] = '\0';
if (!next_token(p, buf, , sizeof(buf))) {
return
Gerald (Jerry) Carter wrote:
On Thu, 13 Feb 2003, Martin Pool wrote:
rpcclient.c/process_cmd has
if (cmd[strlen(cmd) - 1] == '\n')
cmd[strlen(cmd) - 1] = '\0';
if (!next_token(p, buf, , sizeof(buf))) {
return NT_STATUS_OK;
On Thu, Feb 13, 2003 at 10:24:57AM -0800, Herb Lewis wrote:
Isn't the second check for newline redundant?
Looks like it to me.
Only redundant if we can guarentee that the cmd string will only have
one \n at the end and no other ones embeded in the string. I don't
know enough about
On 13 Feb 2003, Gerald (Jerry) Carter [EMAIL PROTECTED] wrote:
Hash: SHA1
On Thu, 13 Feb 2003, Martin Pool wrote:
rpcclient.c/process_cmd has
if (cmd[strlen(cmd) - 1] == '\n')
cmd[strlen(cmd) - 1] = '\0';
if (!next_token(p, buf, ,
rpcclient.c/process_cmd has
if (cmd[strlen(cmd) - 1] == '\n')
cmd[strlen(cmd) - 1] = '\0';
if (!next_token(p, buf, , sizeof(buf))) {
return NT_STATUS_OK;
}
/* strip the trainly \n if it exsists */
len =