Skip to content

Commit 3092eee

Browse files
committed
Fixed non-Windows builds
1 parent 29197ad commit 3092eee

File tree

1 file changed

+7
-0
lines changed

1 file changed

+7
-0
lines changed

src/remote/client/interface.cpp

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7408,8 +7408,11 @@ static rem_port* analyze(ClntAuthBlock& cBlock, PathName& attach_name, unsigned
74087408

74097409
bool needFile = !(flags & ANALYZE_EMP_NAME);
74107410
const PathName save_attach_name(attach_name);
7411+
7412+
#ifdef TRUSTED_AUTH
74117413
bool legacySSP = false;
74127414
Auth::setLegacySSP(legacySSP);
7415+
#endif
74137416

74147417
while (true)
74157418
{
@@ -7505,6 +7508,7 @@ static rem_port* analyze(ClntAuthBlock& cBlock, PathName& attach_name, unsigned
75057508
}
75067509
catch (const Exception&)
75077510
{
7511+
#ifdef TRUSTED_AUTH
75087512
const char* const pluginName = cBlock.plugins.name();
75097513
if (legacySSP || fb_utils::stricmp(pluginName, "WIN_SSPI") != 0)
75107514
throw;
@@ -7515,6 +7519,9 @@ static rem_port* analyze(ClntAuthBlock& cBlock, PathName& attach_name, unsigned
75157519
attach_name = save_attach_name;
75167520

75177521
cBlock.plugins.set(pluginName);
7522+
#else
7523+
throw;
7524+
#endif
75187525
}
75197526
}
75207527

0 commit comments

Comments
 (0)