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
With every log-in: realpath() cannot resolve path "" #277
Comments
To tweak the log level: #279 |
The relevant code is present in the realpath_safe() function, starting at line 438 of libatalk/util/unix.c. Realpath_safe() is called in etc/afpd/fce_api.c and libatalk/util/netatalk_conf.c... |
Thanks for tracking down the usage of the code. I narrowed it down to Line 289 in aca367a
That empty string is then passed to realpath_safe() In fact, there are two places in auth.c where fce_register() is called with an empty string: once for login once for logout. Elsewhere in the codebase, fce_register() is always called with a path string, so the issue seems to be isolated to this spot in the code. |
Found a simple fix: move the path lookups closer to where they're actually used in that function. This allow fce_register() to validate if listeners are configured, which they aren't at this stage, and return with AFP_OK before the path lookup. |
Since the change in #212 I'm seeing this once every time a user connects to an afp volume:
So there is code somewhere that tries to resolve an null string path. Doesn't seem fatal, but arguably a bit unclean. While figuring this out, perhaps lowering the log level to warning is apt.
The text was updated successfully, but these errors were encountered: