mirror of
https://github.com/morgan9e/FreeRDP
synced 2026-04-15 00:44:19 +09:00
[client,common] do not swap drive name,path for wildcards
the convenience feature to allow name,path or path,name syntax for drive did not check for path being one of the wildcard symbols.
This commit is contained in:
committed by
Martin Fleisz
parent
97cb8d9e57
commit
10386e73bc
@@ -170,8 +170,21 @@ static BOOL freerdp_client_add_drive(rdpSettings* settings, const char* path, co
|
||||
|
||||
if (name)
|
||||
{
|
||||
BOOL skip = FALSE;
|
||||
if (path)
|
||||
{
|
||||
switch (path[0])
|
||||
{
|
||||
case '*':
|
||||
case '%':
|
||||
skip = TRUE;
|
||||
break;
|
||||
default:
|
||||
break;
|
||||
}
|
||||
}
|
||||
/* Path was entered as secondary argument, swap */
|
||||
if (winpr_PathFileExists(name))
|
||||
if (!skip && winpr_PathFileExists(name))
|
||||
{
|
||||
if (!winpr_PathFileExists(path) || (!PathIsRelativeA(name) && PathIsRelativeA(path)))
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user