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 change in return value of syscall.Open #103

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

Conversation

arturfabriciohahaedgy
Copy link

When trying to run go install 9fans.net/go/...@latest I recieved the following error:
go/pkg/mod/9fans.net/[email protected]/cmd/samterm/unix.go:62:21: cannot use fd (variable of type int) as type *os.File in argument to extproc
It appears that the value of syscall.Open in the function extstart in go/cmd/samterm/unix.go:43:12 has changed from *os.File to an integer, and so breaking the parameter passed to extproc in sys.go.
My commit fixes this by adding the syscall import to sys.go and using the function syscall.Read.

@arturfabriciohahaedgy arturfabriciohahaedgy changed the title fix change in return value of syscall.Open(extstart in unix.go) fix change in return value of syscall.Open Dec 31, 2022
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