fix pathvalidate non unix (#20801)
Ilya Mashchenko committed
Aug 11, 2025 at 17:52 UTC
1efba82980dc56dffc201a99ce45644bf9c5091c
1 file changed
+2
-2
src/go/plugin/go.d/pkg/pathvalidate/validate_stub.go
+2
-2
@@ -6,6 +6,6 @@ package pathvalidate
6
7
// ValidateBinaryPath checks if a binary path is secure for execution.
8
// This is a stub implementation for non-Unix platforms.
9
-func ValidateBinaryPath(path string) error {
10
- return nil
9
+func ValidateBinaryPath(path string) (string, error) {
10
+ return path, nil
11
}