diff options
author | Hans Svensson <[email protected]> | 2014-01-23 10:18:37 +0100 |
---|---|---|
committer | Henrik Nord <[email protected]> | 2014-02-03 14:47:43 +0100 |
commit | 55222b92e84960c66fcd1a220c54917f3dfbda2e (patch) | |
tree | 419dea921734326b2b4aa2a748939469d838a6e4 /lib/ssh/src/ssh_sftpd.erl | |
parent | 0925058a5fdf90de95122b934d995f609a075594 (diff) | |
download | otp-55222b92e84960c66fcd1a220c54917f3dfbda2e.tar.gz otp-55222b92e84960c66fcd1a220c54917f3dfbda2e.tar.bz2 otp-55222b92e84960c66fcd1a220c54917f3dfbda2e.zip |
lib/mnesia/test/ - Replace reverse(tl(reverse(L))) with lists:droplast/1
Diffstat (limited to 'lib/ssh/src/ssh_sftpd.erl')
-rw-r--r-- | lib/ssh/src/ssh_sftpd.erl | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/ssh/src/ssh_sftpd.erl b/lib/ssh/src/ssh_sftpd.erl index 50cbdd5e45..2bc68e62bb 100644 --- a/lib/ssh/src/ssh_sftpd.erl +++ b/lib/ssh/src/ssh_sftpd.erl @@ -675,7 +675,7 @@ resolve_symlinks_2(["." | RestPath], State0, LinkCnt, AccPath) -> resolve_symlinks_2([".." | RestPath], State0, LinkCnt, AccPath) -> %% Remove the last path component AccPathComps0 = filename:split(AccPath), - Path = case lists:droplast(AccPathComps0))) of + Path = case lists:droplast(AccPathComps0) of [] -> ""; AccPathComps -> |