The branch, v3-0-test has been updated
       via  f62fe6ed60f1b9806d58c19df809ce85d596933f (commit)
      from  040db1ce851909704d093538ba063863fa11f73e (commit)

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


- Log -----------------------------------------------------------------
commit f62fe6ed60f1b9806d58c19df809ce85d596933f
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 0cc1433..0fadd54 100644
--- a/source/client/client.c
+++ b/source/client/client.c
@@ -3857,6 +3857,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;
@@ -4068,6 +4069,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