mirror of
https://github.com/pterodactyl/wings.git
synced 2025-12-11 03:02:08 -06:00
server(filesystem): fix Writefile being broken
This commit is contained in:
parent
e9b8b11fec
commit
13d3490bcf
@ -117,7 +117,6 @@ func (fs *Filesystem) Touch(p string, flag int) (*os.File, error) {
|
|||||||
if err != nil {
|
if err != nil {
|
||||||
return nil, errors.Wrap(err, "server/filesystem: touch: failed to open file with wait")
|
return nil, errors.Wrap(err, "server/filesystem: touch: failed to open file with wait")
|
||||||
}
|
}
|
||||||
_ = f.Close()
|
|
||||||
_ = fs.Chown(cleaned)
|
_ = fs.Chown(cleaned)
|
||||||
return f, nil
|
return f, nil
|
||||||
}
|
}
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user