From 7b5cd075161bd4e1a05070d51cc64b38882ae74b Mon Sep 17 00:00:00 2001 From: JP Appel Date: Sun, 27 Jul 2025 20:50:37 -0400 Subject: Remove unimplemented external command operators Executing external commands against file metadata is a serious security risk. The desired features of most external commands can be safely implemented using SQLite native functions. --- pkg/query/compiler.go | 4 ---- 1 file changed, 4 deletions(-) (limited to 'pkg/query/compiler.go') diff --git a/pkg/query/compiler.go b/pkg/query/compiler.go index 9edfeb5..1e946a6 100644 --- a/pkg/query/compiler.go +++ b/pkg/query/compiler.go @@ -99,10 +99,6 @@ func (s Statements) buildCompile(b *strings.Builder, delim string) ([]any, error } else { opStr = "!= " } - case OP_PIPE: - opStr = "?op_pipe " - case OP_ARG: - opStr = "?op_arg " default: return nil, &CompileError{ fmt.Sprintf("unexpected query.opType %#v", op), -- cgit v1.2.3