internal/safepath/join_linux.go
Function Join
has 5 return statements (exceeds 4 allowed). Open
Open
func Join(_ context.Context, path, subpath string) (*SafePath, error) {
base, subpart, err := evaluatePath(path, subpath)
if err != nil {
return nil, err
}
Function tempMountPoint
has 5 return statements (exceeds 4 allowed). Open
Open
func tempMountPoint(sourceFd int) (string, error) {
var stat unix.Stat_t
err := unix_noeintr.Fstat(sourceFd, &stat)
if err != nil {
return "", errors.Wrap(err, "failed to Fstat mount source fd")