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
Please notice the 0644 permission, this means r/w for owner, read for everyone else.
The file is indeed being created, but it appears to have wrong permission after this operation.
A few function calls later, my code attemps to read the file and get permission denied. I tried inspecting the file with cat, permission denied too.
After inspecting the file permissions with ls -l and stat:
Why is this file being created with wrong permission?
Steps to Reproduce
Setup mirrord with localwithoverrides fs.
Using Golang, create a file with os.WriteFile, use perm 0644.
try to read the newly created file (you will get an error).
Examine file permissions with ls -l or stat (you will need sudo for this one). The resulting permission will be 1224/--w--w-r-T. This behavior seems unexpected.
Bug Description
Hello! I believe I have found a bug.
This is my config:
My service is creating a file like this (Go code):
Please notice the
0644
permission, this means r/w for owner, read for everyone else.The file is indeed being created, but it appears to have wrong permission after this operation.
A few function calls later, my code attemps to read the file and get permission denied. I tried inspecting the file with
cat
, permission denied too.After inspecting the file permissions with
ls -l
andstat
:Final permission is 1224/--w--w-r-T:
Why is this file being created with wrong permission?
Steps to Reproduce
mirrord
withlocalwithoverrides
fs.os.WriteFile
, use perm0644
.ls -l
orstat
(you will needsudo
for this one). The resulting permission will be 1224/--w--w-r-T. This behavior seems unexpected.Backtrace
No response
mirrord layer logs
No response
Internal proxy logs
No response
Your operating system and version
Pop!_OS 22.04 LTS x86_64 (kernel 6.9.3-76060903-generic)
Local process
Go 1.22.7 linux/amd64
Local process version
Go 1.22.7 linux/amd64
Additional Info
No response
The text was updated successfully, but these errors were encountered: