We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent aee47ab commit 7d91023Copy full SHA for 7d91023
backend/src/unix_platform.hpp
@@ -68,7 +68,7 @@ class UnixPlatform : public AbstractPlatform
68
if ((file_stat.st_mode & S_ISUID) && file_stat.st_uid != 0)
69
throw runtime_error("backend is setuid but owner is not root!");
70
71
- return (file_stat.st_uid == 0 && file_stat.st_mode == MODE);
+ return (file_stat.st_uid == 0 && (file_stat.st_mode & S_ISUID));
72
}
73
74
void fix_permissions() {
0 commit comments