From c2adac344cc3cf53c775476576ae3bfee1e6bf16 Mon Sep 17 00:00:00 2001 From: Daniel <845765@qq.com> Date: Fri, 19 Dec 2025 19:58:33 +0800 Subject: [PATCH] :art: https://github.com/siyuan-note/siyuan/issues/16623 Signed-off-by: Daniel <845765@qq.com> --- kernel/util/pandoc.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/kernel/util/pandoc.go b/kernel/util/pandoc.go index 8654d9cb6..67031c347 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 }