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

open doesn't pass flags on Go + Linux #2614

Open
aviramha opened this issue Jul 28, 2024 · 1 comment
Open

open doesn't pass flags on Go + Linux #2614

aviramha opened this issue Jul 28, 2024 · 1 comment

Comments

@aviramha
Copy link
Member

aviramha commented Jul 28, 2024

Probably we don't pass args from the open syscall.
Happens when using local (but probably can affect remote as well)

fd, err := os.OpenFile("/tmp/myfile.txt", os.O_RDWR|os.O_CREATE|os.O_TRUNC, 0644)
if err != nil {
  panic(err)
}
defer fd.Close()
@aviramha
Copy link
Member Author

Note the hack we did with open (where it accept varargs) - I recall we had an issue with macOS not working well there so probably need similar implementation.

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

No branches or pull requests

1 participant