mirror of
https://github.com/wekan/wekan.git
synced 2026-11-24 20:45:00 -05:00
AppImages: FerretDB and mongo-tools are readable by every user again.
releases/fetch.sh downloaded into a mktemp file and moved it into place, so every download kept mktemp's 0600, and the bundled ferretdb and mongo-tools were 0711 after chmod +x. A user other than the owner gets "Permission denied" from such a file, and since today's appimagetool checks for it, all six v12.69 AppImages (i686, x86_64, aarch64, armhf and both musl ones) failed: "has mode 0711, but it must be readable for all users". A download now gets the mode its umask gives a new file, and the AppDir is made a+rX before it is packed. tests/releaseDownloads.test.cjs fails on the old fetch.sh with 711 instead of 755 and checks that a stricter umask is still followed; tests/appImageRuntime.test.cjs pins both. Thanks to xet7 !
This commit is contained in:
1 parent
856a32968b
commit
dfdadaa8ca
4 files changed
+42
-1
No files matched your search
@@ -405,6 +405,10 @@ jobs:
|
||||
APPRUN
|
||||
sed -i "s/@APPIMAGE_ARCH@/$arch/" AppDir/AppRun
|
||||
chmod +x AppDir/AppRun
|
||||
# The AppImage runs as whoever starts it, not as this runner, so
|
||||
# everything in it must be readable by all. v12.69's FerretDB and
|
||||
# mongo-tools were 0711 and appimagetool refused to pack them.
|
||||
chmod -R a+rX AppDir
|
||||
|
||||
- name: Pack the AppImage
|
||||
if: ${{ env.BUILD_THIS == 'true' }}
|
||||
|
||||
Reference in new issue
Block a user