The branch, v3-2-test has been updated
       via  a9b686bfdcf993d5423875543f154607836ac143 (commit)
      from  178afff8791992aee78869f17458dca0956bc116 (commit)

http://gitweb.samba.org/?p=samba.git;a=shortlog;h=v3-2-test


- Log -----------------------------------------------------------------
commit a9b686bfdcf993d5423875543f154607836ac143
Author: Andreas Schneider <[EMAIL PROTECTED]>
Date:   Thu Dec 6 12:29:52 2007 +0100

    Remove trailing slashes from service name

-----------------------------------------------------------------------

Summary of changes:
 source/client/client.c |    7 +++++++
 1 files changed, 7 insertions(+), 0 deletions(-)


Changeset truncated at 500 lines:

diff --git a/source/client/client.c b/source/client/client.c
index a65906c..ed33d42 100644
--- a/source/client/client.c
+++ b/source/client/client.c
@@ -3937,6 +3937,7 @@ static int do_message_op(void)
  int main(int argc,char *argv[])
 {
        pstring base_directory;
+       int len = 0;
        int opt;
        pstring query_host;
        bool message = False;
@@ -4149,6 +4150,12 @@ static int do_message_op(void)
                        poptPrintUsage(pc, stderr, 0);
                        exit(1);
                }
+               /* Remove trailing slashes */
+               len = strlen(service);
+               while(len > 0 && service[len - 1] == '\\') {
+                       --len;
+                       service[len] = '\0';
+               }
        }
        
        if ( strlen(new_workgroup) != 0 )


-- 
Samba Shared Repository

Reply via email to