master
xSmurf 9 years ago
parent 820a31d253
commit 11586f1e31

@ -50,6 +50,7 @@ func Main(mode int) {
readonly = true
}
for _, fpath := range os.Args[start:] {
fpath = path.Clean(fpath);
if !strings.HasPrefix(fpath, homedir) {
log.Warning("Ignored `%s`, only files inside of home are permitted!", fpath)
continue

Loading…
Cancel
Save