Join GitHub today
GitHub is home to over 50 million developers working together to host and review code, manage projects, and build software together.Sign up
GitHub is where the world builds software
Millions of developers and companies build, ship, and maintain their software on GitHub — the largest and most advanced development platform in the world.
os.Chmod file.Chmod different behavior on Windows #39606
What version of Go are you using (
I briefly looked at this, and it appears that syscall.Fchmod is not implemented, while syscall.Chmod is. I don't remember why it happened this way.
I also noticed that os.TestChmod is skipped on windows. os.TestChmod actually checks that os.File.Chmod works. So, I would start by making os.TestChmod run on windows, and see where it gets you.
I don't see problem implementing syscall.Fchmod, given that we already have syscall.Chmod implementation.