Skip to content

Conversation

sthibaul
Copy link
Contributor

86451e3 ("lib/fs/readlink/areadlink.h: areadlink(): Use PATH_MAX instead of a magic value") introduced using PATH_MAX, but e.g. GNU/Hurd does not define such a limitation.

alejandro-colomar added a commit to alejandro-colomar/shadow that referenced this pull request Feb 22, 2025
Link: <shadow-maint#1222 (comment)>
Link: <https://stackoverflow.com/questions/60802732/are-realpath-portability-concerns-obsolete>
Reported-by: Samuel Thibault <samuel.thibault@ens-lyon.org>
Signed-off-by: Alejandro Colomar <alx@kernel.org>
@alejandro-colomar alejandro-colomar added Simpler A good issue for a new beginner and removed Simpler A good issue for a new beginner labels Feb 23, 2025
ikerexxe pushed a commit that referenced this pull request Mar 3, 2025
Link: <#1222 (comment)>
Link: <https://stackoverflow.com/questions/60802732/are-realpath-portability-concerns-obsolete>
Reported-by: Samuel Thibault <samuel.thibault@ens-lyon.org>
Signed-off-by: Alejandro Colomar <alx@kernel.org>
@sthibaul
Copy link
Contributor Author

sthibaul commented Jun 7, 2025

Here it is

@sthibaul
Copy link
Contributor Author

sthibaul commented Jun 7, 2025

I have also done the same for MAXHOSTNAMELEN

E.g. GNU/Hurd does not define such limitations. Let "defines.h"
provide some good-enough value.

Signed-off-by: Samuel Thibault <samuel.thibault@ens-lyon.org>
Copy link
Collaborator

@alejandro-colomar alejandro-colomar left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks!

@alejandro-colomar alejandro-colomar merged commit cafcda2 into shadow-maint:master Jun 7, 2025
10 checks passed
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.

2 participants