Skip to content

Conversation

@rklaehn
Copy link
Collaborator

@rklaehn rklaehn commented Sep 17, 2025

We create a temp dir in ., and it will be changing over time. We could filter it out, but that's a can of worms. So for now just forbid sharing .

Fixes #96

We create a temp dir in ., and it will be changing over time.
We could filter it out, but that's a can of worms. So for now just forbid
sharing .
@rklaehn rklaehn merged commit 91d2185 into main Sep 17, 2025
@rklaehn rklaehn deleted the forbid-sharing-dot branch September 17, 2025 08:34
@vt-alt
Copy link

vt-alt commented Sep 17, 2025

Thanks!

@Jisu-Woniu
Copy link
Contributor

I suggest never create temp dirs in ., instead create it in global temp dirs like /tmp, /var/tmp, or %USERPROFILE%\AppData\Local\Temp. It is less likely for a user to send such directories instead of . / $PWD. Crates like tempfile may help.

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.

sendme send . results in generic error: LeafNotFound(0) ... Hash not found

4 participants