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

Xvnc: do not use dup2() to create a file descriptor for -inetd option #1714

Merged
merged 1 commit into from
Jan 8, 2024

Conversation

grulja
Copy link
Contributor

@grulja grulja commented Jan 8, 2024

Use dup() instead to get an available file descriptor to avoid hijacking already existing descriptor.

Fixes #1709

Use dup() instead to get an available file descriptor to avoid hijacking
already existing descriptor.

Fixes TigerVNC#1709
@grulja
Copy link
Contributor Author

grulja commented Jan 8, 2024

I tested this on RHEL and it fixes #1709. I couldn't find any hardcoded usage of the FD number 3 as the following code seems to be using vncInetdSock.

Copy link
Member

@CendioOssman CendioOssman left a comment

Choose a reason for hiding this comment

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

Great, thanks!

@CendioOssman CendioOssman merged commit 7a9773a into TigerVNC:master Jan 8, 2024
12 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.

Don't use ' dup2(0, 3)' unconditionally
2 participants