Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix DFS recurision for missing files #239

Merged
merged 1 commit into from
Sep 5, 2023
Merged

Fix DFS recurision for missing files #239

merged 1 commit into from
Sep 5, 2023

Conversation

jborean93
Copy link
Owner

The code that handles a missing path does not currently record existing DFS target servers that have been tried resulting in a recursion error. By ensuring a DFS target is only retried if it hasn't already it should avoid this recursion problem.

Fixes: #228

The code that handles a missing path does not currently record existing
DFS target servers that have been tried resulting in a recursion error.
By ensuring a DFS target is only retried if it hasn't already it should
avoid this recursion problem.

Fixes: #228
@codecov
Copy link

codecov bot commented Sep 5, 2023

Codecov Report

Patch coverage: 80.00% and project coverage change: -0.02% ⚠️

Comparison is base (72eed28) 99.07% compared to head (3df1958) 99.05%.

Additional details and impacted files
@@            Coverage Diff             @@
##           master     #239      +/-   ##
==========================================
- Coverage   99.07%   99.05%   -0.02%     
==========================================
  Files          24       24              
  Lines        5088     5093       +5     
==========================================
+ Hits         5041     5045       +4     
- Misses         47       48       +1     
Flag Coverage Δ
99.05% <80.00%> (-0.02%) ⬇️
py3.10 99.01% <80.00%> (-0.02%) ⬇️
py3.11 99.01% <80.00%> (-0.02%) ⬇️
py3.12.0-rc.1 99.01% <80.00%> (-0.02%) ⬇️
py3.7 99.00% <80.00%> (-0.02%) ⬇️
py3.8 99.01% <80.00%> (-0.02%) ⬇️
py3.9 99.05% <80.00%> (-0.02%) ⬇️
x64 99.05% <80.00%> (-0.02%) ⬇️
x86 98.97% <80.00%> (-0.02%) ⬇️

Flags with carried forward coverage won't be shown. Click here to find out more.

Files Changed Coverage Δ
src/smbclient/_io.py 98.73% <80.00%> (-0.31%) ⬇️

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

@jborean93 jborean93 merged commit b8c76d0 into master Sep 5, 2023
27 of 29 checks passed
@jborean93 jborean93 deleted the dfs-recursion branch September 5, 2023 20:22
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

[DFS server]: Infinite recursion due to lstat for a non-existent file
1 participant