MCPcopy Create free account
hub / github.com/GongShichen/LuminaCode / isSpecialSafePath

Function isSpecialSafePath

tools/bash/validation.go:358–365  ·  view source on GitHub ↗
(p string)

Source from the content-addressed store, hash-verified

356}
357
358func isSpecialSafePath(p string) bool {
359 switch p {
360 case "-", "/dev/null", "/dev/zero", "/dev/random", "/dev/urandom":
361 return true
362 default:
363 return false
364 }
365}
366
367func resolvePath(path string) (string, error) {
368 if resolved, err := filepath.EvalSymlinks(path); err == nil {

Callers 1

ValidatePathsFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected