Skip to content

Commit

Permalink
fuse_fs: fix order of rename arguments
Browse files Browse the repository at this point in the history
  • Loading branch information
cnuke committed Dec 17, 2021
1 parent d02770c commit a36cf9a
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/server/fuse_fs/fuse_fs_main.cc
Original file line number Diff line number Diff line change
Expand Up @@ -445,8 +445,8 @@ class Fuse_fs::Session_component : public Session_rpc_object
/* XXX remove direct use of FUSE operations */
int res = -1;
Libc::with_libc([&] () {
res = Fuse::fuse()->op.rename(absolute_to_path.base(),
absolute_from_path.base());
res = Fuse::fuse()->op.rename(absolute_from_path.base(),
absolute_to_path.base());
});

if (res != 0) {
Expand Down

0 comments on commit a36cf9a

Please sign in to comment.