Skip to content

Commit ef4e1cb

Browse files
committed
ssh: code formatting
1 parent 4e3bf86 commit ef4e1cb

File tree

1 file changed

+3
-5
lines changed

1 file changed

+3
-5
lines changed

lib/ssh/src/ssh_sftpd.erl

Lines changed: 3 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -277,7 +277,7 @@ handle_op(?SSH_FXP_INIT, Version, B, State) when is_binary(B) ->
277277
ssh_xfer:xf_send_reply(XF1, ?SSH_FXP_VERSION, <<?UINT32(Vsn)>>),
278278
State#state{xf = XF1};
279279
handle_op(?SSH_FXP_REALPATH, ReqId,
280-
<<?UINT32(Rlen), RPath:Rlen/binary>>,
280+
<<?UINT32(RLen), RPath:RLen/binary>>,
281281
State0) ->
282282
RelPath = relate_file_name(RPath, State0, _Canonicalize=false),
283283
{Res, State} = resolve_symlinks(RelPath, State0),
@@ -446,14 +446,12 @@ handle_op(?SSH_FXP_RMDIR, ReqId, <<?UINT32(PLen), BPath:PLen/binary>>,
446446
send_status(Status, ReqId, State1);
447447

448448
handle_op(?SSH_FXP_RENAME, ReqId,
449-
Bin = <<?UINT32(PLen), _:PLen/binary, ?UINT32(PLen2),
450-
_:PLen2/binary>>,
449+
Bin = <<?UINT32(PLen), _:PLen/binary, ?UINT32(PLen2), _:PLen2/binary>>,
451450
State = #state{xf = #ssh_xfer{vsn = Vsn}}) when Vsn==3; Vsn==4 ->
452451
handle_op(?SSH_FXP_RENAME, ReqId, <<Bin/binary, 0:32>>, State);
453452

454453
handle_op(?SSH_FXP_RENAME, ReqId,
455-
<<?UINT32(PLen), BPath:PLen/binary, ?UINT32(PLen2),
456-
BPath2:PLen2/binary, ?UINT32(Flags)>>,
454+
<<?UINT32(PLen), BPath:PLen/binary, ?UINT32(PLen2), BPath2:PLen2/binary, ?UINT32(Flags)>>,
457455
State0 = #state{file_handler = FileMod, file_state = FS0}) ->
458456
Path = relate_file_name(BPath, State0),
459457
Path2 = relate_file_name(BPath2, State0),

0 commit comments

Comments
 (0)