Commit d7ff0b6c authored by Han-Wen Nienhuys's avatar Han-Wen Nienhuys

UnionFs: Return ENOSYS if trying to move non-file.

parent 4422f097
......@@ -665,6 +665,10 @@ func (me *UnionFs) Rename(src string, dst string) (code fuse.Status) {
if code.Ok() {
code = srcResult.code
}
if code.Ok() && !srcResult.attr.IsRegular() {
// TODO - implement rename for dirs, links, etc.
code = fuse.ENOSYS
}
if code.Ok() && srcResult.branch > 0 {
code = me.Promote(src, srcResult)
}
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment