Skip to content
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

core: Skip chmod for abstract unix sockets #5596

Merged
merged 1 commit into from
Jun 25, 2023

Conversation

emilylange
Copy link
Member

@emilylange emilylange commented Jun 24, 2023

Because abtract unix sockets aren't real paths on the filesystem and thus can't be chmoded.

Fixes the issue reported by @lxhao61 in 22927e2#commitcomment-119530849

I believe this applies to all platforms, including Windows.

Edit: Closes #5597

because those aren't real paths on the filesystem and thus can't be `chmod`ed
@francislavoie
Copy link
Member

Thanks! Should we have a test for this? I didn't even know abstract unix sockets were a thing. We should probably document it.

@francislavoie francislavoie added the bug 🐞 Something isn't working label Jun 24, 2023
@francislavoie francislavoie added this to the v2.7.0 milestone Jun 24, 2023
Copy link
Member

@mholt mholt left a comment

Choose a reason for hiding this comment

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

Thanks, I don't think I even knew about these 😵

@lxhao61
Copy link

lxhao61 commented Jun 25, 2023

Waiting for post-merge testing.

@mholt mholt merged commit 119e879 into caddyserver:master Jun 25, 2023
22 checks passed
@emilylange emilylange deleted the chmod-abstract-unix-sockets branch June 25, 2023 10:44
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug 🐞 Something isn't working
Projects
None yet
Development

Successfully merging this pull request may close these issues.

The listener cannot run using abstract sockets
4 participants