Skip to content

src: remove duplicate assignment of O_EXCL in node_constants.cc #59049

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

Open
wants to merge 1 commit into
base: main
Choose a base branch
from

Conversation

Tango992
Copy link

@Tango992 Tango992 commented Jul 13, 2025

Currently the O_EXCL constant is assigned twice in DefineFsConstants on these places:

node/src/node_constants.cc

Lines 1086 to 1088 in 049664b

#ifdef O_EXCL
NODE_DEFINE_CONSTANT(target, O_EXCL);
#endif

node/src/node_constants.cc

Lines 1108 to 1110 in 049664b

#ifdef O_EXCL
NODE_DEFINE_CONSTANT(target, O_EXCL);
#endif

Though it doesn't introduce any bugs, changes in this PR removes that redundancy.

@nodejs-github-bot nodejs-github-bot added c++ Issues and PRs that require attention from people who are familiar with C++. needs-ci PRs that need a full CI run. labels Jul 13, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
c++ Issues and PRs that require attention from people who are familiar with C++. needs-ci PRs that need a full CI run.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants