chown the cleaned location, not the original path

This commit is contained in:
Dane Everitt 2020-07-18 10:49:28 -07:00
parent 1b5684e6f8
commit 7c3da84248
No known key found for this signature in database
GPG Key ID: EEA66103B3D71F53

View File

@ -314,7 +314,7 @@ func (fs *Filesystem) Writefile(p string, r io.Reader) error {
// Finally, chown the file to ensure the permissions don't end up out-of-whack
// if we had just created it.
return fs.Chown(p)
return fs.Chown(cleaned)
}
// Defines the stat struct object.