mirror of
https://github.com/TalAloni/SMBLibrary.git
synced 2025-08-18 04:53:46 +02:00
Removed leading slash from ServerService.PipeName and WorkstationService.PipeName
This commit is contained in:
parent
f22cfcbc1c
commit
9265858968
4 changed files with 10 additions and 6 deletions
|
@ -39,6 +39,10 @@ namespace SMBLibrary.Server
|
||||||
|
|
||||||
private RemoteService GetService(string path)
|
private RemoteService GetService(string path)
|
||||||
{
|
{
|
||||||
|
if (path.StartsWith(@"\"))
|
||||||
|
{
|
||||||
|
path = path.Substring(1);
|
||||||
|
}
|
||||||
foreach (RemoteService service in this)
|
foreach (RemoteService service in this)
|
||||||
{
|
{
|
||||||
if (String.Equals(path, service.PipeName, StringComparison.InvariantCultureIgnoreCase))
|
if (String.Equals(path, service.PipeName, StringComparison.InvariantCultureIgnoreCase))
|
||||||
|
|
|
@ -1,4 +1,4 @@
|
||||||
/* Copyright (C) 2014 Tal Aloni <tal.aloni.il@gmail.com>. All rights reserved.
|
/* Copyright (C) 2014-2017 Tal Aloni <tal.aloni.il@gmail.com>. All rights reserved.
|
||||||
*
|
*
|
||||||
* You can redistribute this program and/or modify it under the terms of
|
* You can redistribute this program and/or modify it under the terms of
|
||||||
* the GNU Lesser Public License as published by the Free Software Foundation,
|
* the GNU Lesser Public License as published by the Free Software Foundation,
|
||||||
|
@ -61,7 +61,7 @@ namespace SMBLibrary.Services
|
||||||
{
|
{
|
||||||
bindAckPDU.AssociationGroupID = bindPDU.AssociationGroupID;
|
bindAckPDU.AssociationGroupID = bindPDU.AssociationGroupID;
|
||||||
}
|
}
|
||||||
bindAckPDU.SecondaryAddress = @"\PIPE" + service.PipeName;
|
bindAckPDU.SecondaryAddress = @"\PIPE\" + service.PipeName;
|
||||||
bindAckPDU.MaxReceiveFragmentSize = bindPDU.MaxReceiveFragmentSize;
|
bindAckPDU.MaxReceiveFragmentSize = bindPDU.MaxReceiveFragmentSize;
|
||||||
bindAckPDU.MaxTransmitFragmentSize = bindPDU.MaxTransmitFragmentSize;
|
bindAckPDU.MaxTransmitFragmentSize = bindPDU.MaxTransmitFragmentSize;
|
||||||
foreach (ContextElement element in bindPDU.ContextList)
|
foreach (ContextElement element in bindPDU.ContextList)
|
||||||
|
|
|
@ -1,4 +1,4 @@
|
||||||
/* Copyright (C) 2014 Tal Aloni <tal.aloni.il@gmail.com>. All rights reserved.
|
/* Copyright (C) 2014-2017 Tal Aloni <tal.aloni.il@gmail.com>. All rights reserved.
|
||||||
*
|
*
|
||||||
* You can redistribute this program and/or modify it under the terms of
|
* You can redistribute this program and/or modify it under the terms of
|
||||||
* the GNU Lesser Public License as published by the Free Software Foundation,
|
* the GNU Lesser Public License as published by the Free Software Foundation,
|
||||||
|
@ -187,7 +187,7 @@ namespace SMBLibrary.Services
|
||||||
{
|
{
|
||||||
get
|
get
|
||||||
{
|
{
|
||||||
return @"\srvsvc";
|
return "srvsvc";
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
|
@ -1,4 +1,4 @@
|
||||||
/* Copyright (C) 2014 Tal Aloni <tal.aloni.il@gmail.com>. All rights reserved.
|
/* Copyright (C) 2014-2017 Tal Aloni <tal.aloni.il@gmail.com>. All rights reserved.
|
||||||
*
|
*
|
||||||
* You can redistribute this program and/or modify it under the terms of
|
* You can redistribute this program and/or modify it under the terms of
|
||||||
* the GNU Lesser Public License as published by the Free Software Foundation,
|
* the GNU Lesser Public License as published by the Free Software Foundation,
|
||||||
|
@ -87,7 +87,7 @@ namespace SMBLibrary.Services
|
||||||
{
|
{
|
||||||
get
|
get
|
||||||
{
|
{
|
||||||
return @"\wkssvc";
|
return "wkssvc";
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue