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

nxrecorder: mode is required when oflags include O_CREAT or O_WRONLY #1956

Merged
merged 1 commit into from
Aug 11, 2023

Conversation

XiandongHu
Copy link

@XiandongHu XiandongHu commented Aug 11, 2023

Summary

Refer -- fs_open.c:

/* If the file is opened for creation, then get the mode bits */

  if ((oflags & (O_WRONLY | O_CREAT)) != 0)
    {
      mode = va_arg(ap, mode_t);
    }

Impact

nxrecoder

Testing

internal test

Refer -- fs_open.c:
/* If the file is opened for creation, then get the mode bits */

  if ((oflags & (O_WRONLY | O_CREAT)) != 0)
    {
      mode = va_arg(ap, mode_t);
    }

Signed-off-by: huxiandong <[email protected]>
@xiaoxiang781216 xiaoxiang781216 merged commit 5a4e9e4 into apache:master Aug 11, 2023
25 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.

3 participants