Skip to content

syscall, os: opening hidden file for write access on Windows gives ACCESS_DENIED_ERROR #25923

@FabienTregan

Description

@FabienTregan

What version of Go are you using (go version)?

go version go1.10.2 windows/amd64

also reproduces on go version go1.8.7 windows/386

Does this issue reproduce with the latest release?

yes

What operating system and processor architecture are you using (go env)?

set GOARCH=amd64
set GOHOSTARCH=amd64
set GOHOSTOS=windows
set GOOS=windows

What did you do?

I try to make a write access to an hidden text file on windows 10.

I made separate project to reproduce the issue here : https://github.com/FabienTregan/TestWritingToHiddenFilesInGo (with a bit more informations in the readme.md file)

What did you expect to see?

Some text written in the file

What did you see instead?

Received unexpected error:
open C:\Users[USER NAME]\AppData\Local\Temp\write_to_hidden_file_test_204946587: Access is denied.

Metadata

Metadata

Assignees

No one assigned

    Labels

    NeedsInvestigationSomeone must examine and confirm this is a valid issue and not a duplicate of an existing one.OS-Windowscompiler/runtimeIssues related to the Go compiler and/or runtime.

    Type

    No type

    Projects

    No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions