Skip to content

Fix no symlink buffer on symlink open#334

Merged
jborean93 merged 1 commit intomasterfrom
no-symlink-buffer
Feb 8, 2026
Merged

Fix no symlink buffer on symlink open#334
jborean93 merged 1 commit intomasterfrom
no-symlink-buffer

Conversation

@jborean93
Copy link
Owner

Fixes the response handler to raise the STATUS_STOPPED_ON_SYMLINK when trying to open a symlink but the server does not return the reparse buffer. This behaviour has been seen on server implementations like macOS. The SMBDirEntry symlink type tests also treat this as having no valid target.

Fixes: #333

Fixes the response handler to raise the `STATUS_STOPPED_ON_SYMLINK` when
trying to open a symlink but the server does not return the reparse
buffer. This behaviour has been seen on server implementations like
macOS. The SMBDirEntry symlink type tests also treat this as having no
valid target.
@codecov
Copy link

codecov bot commented Feb 4, 2026

Codecov Report

❌ Patch coverage is 91.66667% with 1 line in your changes missing coverage. Please review.
✅ Project coverage is 99.01%. Comparing base (d74570f) to head (2d2dbf2).
⚠️ Report is 2 commits behind head on master.

Files with missing lines Patch % Lines
src/smbclient/_os.py 83.33% 1 Missing ⚠️
Additional details and impacted files
@@            Coverage Diff             @@
##           master     #334      +/-   ##
==========================================
- Coverage   99.03%   99.01%   -0.02%     
==========================================
  Files          24       24              
  Lines        5177     5184       +7     
==========================================
+ Hits         5127     5133       +6     
- Misses         50       51       +1     
Flag Coverage Δ
macOS 68.09% <0.00%> (-0.10%) ⬇️
py3.10 98.97% <91.66%> (-0.02%) ⬇️
py3.11 98.97% <91.66%> (-0.02%) ⬇️
py3.12 98.97% <91.66%> (-0.02%) ⬇️
py3.13 98.97% <91.66%> (-0.02%) ⬇️
py3.14 98.97% <91.66%> (-0.02%) ⬇️
py3.9 99.01% <91.66%> (-0.02%) ⬇️
ubuntu 96.85% <50.00%> (+0.02%) ⬆️
windows 98.93% <91.66%> (-0.02%) ⬇️

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

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

🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.

@jborean93 jborean93 merged commit 236d3cd into master Feb 8, 2026
20 of 22 checks passed
@jborean93 jborean93 deleted the no-symlink-buffer branch February 8, 2026 21:40
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.

[Listing a MacOS Shared folder] smbclient.walk Generator raises StopIteration when encountering symbolic link

1 participant