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
Updating (at least under linux) changes the permissions on the file.
Before the update i set ther permissions to 755.
After the update the file has 700.
With this updating a file for other users (updating a file in /usr/bin as root) makes the file unusable for any other user.
There seems to be some code to set permissions to 755 in apply.go, but it seems to be not working.
The text was updated successfully, but these errors were encountered:
Googling a bit I found out, that file permissions passed to os.OpenFile are modified by the umask of the process (which in my case is 077).
Interestingly os.Chmod is not affected by the umask, so calling os.Chmod (with the right permissions) right after creating the file solves this problem.
Updating (at least under linux) changes the permissions on the file.
Before the update i set ther permissions to 755.
After the update the file has 700.
With this updating a file for other users (updating a file in /usr/bin as root) makes the file unusable for any other user.
There seems to be some code to set permissions to 755 in apply.go, but it seems to be not working.
The text was updated successfully, but these errors were encountered: