Join GitHub today
GitHub is home to over 40 million developers working together to host and review code, manage projects, and build software together.Sign up
os: (nil)*File.Sync() returns syscall.EINVAL on posix platforms #7043
What steps will reproduce the problem? *File.Sync() returns syscall.EINVAL on posix platforms when *File is nil, this is different to all the other *File methods which return ErrInvalid. What is the expected output? What do you see instead? Although not documented, the other methods on this type lead me to believe that *File.Sync() should return ErrInvalid on all platforms when the receiver is nil. Please use labels and text to provide additional information.
This issue was closed.