1
0
Fork 0
mirror of https://gitlab.com/sortix/sortix.git synced 2023-02-13 20:55:38 -05:00

Fix userfs renaming between directories.

This commit is contained in:
Jonas 'Sortie' Termansen 2014-10-05 00:36:52 +02:00
parent 26c9b266b8
commit 1206113425

View file

@ -1247,8 +1247,8 @@ int Unode::rename_here(ioctx_t* /*ctx*/, Ref<Inode> from, const char* oldname,
return -1;
int ret = -1;
struct fsm_req_rename msg;
msg.olddirino = this->ino;
msg.newdirino = from->ino;
msg.olddirino = from->ino;
msg.newdirino = this->ino;
msg.oldnamelen = strlen(oldname);
msg.newnamelen = strlen(newname);
size_t extra = msg.oldnamelen + msg.newnamelen;