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
When running the Pebble make-dirs command, the resulting directory permissions may not match the requested settings, as they are affected by the umask of the pebble daemon.
To reproduce:
( umask 077; ./pebble run )
./pebble mkdir -m=777 /tmp/test-mkdir
ls -lah /tmp/test-mkdir/.
total 8.0K
drwx------ 2 weii-wang weii-wang 4.0K Feb 28 05:02 .# it should be 777 instead of 700
drwxrwxrwt 16 root root 4.0K Feb 28 05:02 ..
The text was updated successfully, but these errors were encountered:
Well the simplest way to fix this issue is to just call syscall.Umask(0) when starting the daemon or fix the issue in internals/osutil/mkdirallchown.go, which seems not trivial. I wonder which approach would be better.
It looks like this might be a duplicate of #80 -- however, when that issue was fixed (here: a2161d4) it looks like it was only fixed for write-file and not make-dirs, so keeping this open to track that.
When running the Pebble
make-dirs
command, the resulting directory permissions may not match the requested settings, as they are affected by the umask of the pebble daemon.To reproduce:
The text was updated successfully, but these errors were encountered: