1
0
mirror of https://github.com/samba-team/samba.git synced 2025-01-29 21:47:30 +03:00

Remove trailing slashes from service name

This commit is contained in:
Andreas Schneider 2007-12-06 12:29:52 +01:00 committed by Volker Lendecke
parent 178afff879
commit a9b686bfdc

View File

@ -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 )