Skip to content

Bug: bad handling of fixed paths #13

@vorpalhex

Description

@vorpalhex

Passing a fixed path to tweego results in all kinds of weirdness:

> tweego -f jailbird /tmp/temp.twee
error: load ../../../../tmp/temp.twee: open ../../../../tmp/temp.twee: no such file or directory

It looks like

tweego/io.go

Line 65 in 81d1d71

func fileReadAllWithEncoding(filename, encoding string) ([]byte, error) {
may need a call to https://golang.org/pkg/path/#Clean

Metadata

Metadata

Assignees

Labels

bugSomething isn't workingdoneissue is resolved

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions