chown the cleaned location, not the original path
This commit is contained in:
parent
1b5684e6f8
commit
7c3da84248
|
@ -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.
|
||||
|
|
Loading…
Reference in New Issue
Block a user