Skip to content

An open-source, privacy-first, self-hosted knowledge workspace where humans and AI agents work together 开源、隐私优先、自托管的知识工作空间,让人与智能体在此协作

:art: https://github.com/siyuan-note/siyuan/issues/16623

Danielc2adac344cc3
diff --git a/kernel/util/pandoc.go b/kernel/util/pandoc.go
index 8654d9cb68..67031c347e 100644
--- a/kernel/util/pandoc.go
+++ b/kernel/util/pandoc.go
@@ -224,7 +224,7 @@ func IsValidPandocBin(binPath string) bool {
// 在 Unix-like 上要求拥有可执行权限
if !gulu.OS.IsWindows() {
- if fi.Mode().Perm()&0111 == 0 {
+ if fi.Mode().Perm()&os.FileMode(0o111) == 0 {
logging.LogWarnf("file [%s] is not executable", binPath)
return false
}