-
Notifications
You must be signed in to change notification settings - Fork 97
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
afpd crashes in dircache with tainted dir #1235
Comments
Some added logging shows:
Turns out this is caused by the 'afpshare' subdir in my home dir on this computer, which is getting did=2 which is lower than the lowest allowed 17... The afpshare dir itself is a netatalk shared volume with its own CNID metadata. When removing it, the issue goes away. This represents an invalid usecase, I think. But it ought to be handled more gracefully, arguably. And why does it occur only when the package is built with |
I will add some helpful error logging here to point the user to a solution. |
I had something like this in mind
...but, even with the original volume data I cannot reproduce now, and won't add code I cannot test properly. |
When sharing a volume that has a subdir containing another netatalk shared volume, you get a crash in the dircache_add() function when you try to connect to a shared volume. Debian 12, and afp.conf containing only
[Homes] basedir regex = /home
The text was updated successfully, but these errors were encountered: