You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
hashibuto
changed the title
os/path: MkdirAll does not return an error when insufficient access privilege exists on a path component
os: MkdirAll does not return an error when insufficient access privilege exists on a path component
Mar 8, 2021
What version of Go are you using (
go version
)?Does this issue reproduce with the latest release?
Yes
What operating system and processor architecture are you using (
go env
)?go env
OutputWhat did you do?
Attempt to create a directory with insufficient permissions in /root using os.MkdirAll
Example:
What did you expect to see?
I expected an error to be returned, indicating a permission issue.
What did you see instead?
A
nil
was returned for the error, but obviously the directory was not created.The text was updated successfully, but these errors were encountered: