Re: query about rpcclient process_cmd:

2003-02-13 Thread Gerald (Jerry) Carter
-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

Re: query about rpcclient process_cmd:

2003-02-13 Thread Herb Lewis
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;

Re: query about rpcclient process_cmd:

2003-02-13 Thread Tim Potter
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

Re: query about rpcclient process_cmd:

2003-02-13 Thread Martin Pool
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, ,

query about rpcclient process_cmd:

2003-02-12 Thread Martin Pool
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 =