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

Fix open() call with O_CREAT flag (mode parameter must be provided) #1

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

Conversation

agoncharuk
Copy link

When built on Ubuntu 21.04, the dbgen crashes complaining that open() is called with O_CREAT flag, but the mode parameter is not provided, which is in line with the open() documentation:

The mode argument must be supplied if O_CREAT or O_TMPFILE is specified in flags; if it is not supplied, some arbitrary bytes from the stack will be applied as the file mode.

The PR adds the required mode parameter in line with the similar calls below. After this change dbgen runs successfully on my system.

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.

1 participant