diff options
author | Henrik Nord <[email protected]> | 2014-02-07 11:42:58 +0100 |
---|---|---|
committer | Henrik Nord <[email protected]> | 2014-02-07 11:43:44 +0100 |
commit | 243ebeb5366a79180146eef8680a3909d340a1ca (patch) | |
tree | d0eddc82d59845037b82769e87bde239714b2193 /lib/ssh/src | |
parent | 069b1840316979c69e4bfed1c814a239b852d8ba (diff) | |
parent | 55222b92e84960c66fcd1a220c54917f3dfbda2e (diff) | |
download | otp-243ebeb5366a79180146eef8680a3909d340a1ca.tar.gz otp-243ebeb5366a79180146eef8680a3909d340a1ca.tar.bz2 otp-243ebeb5366a79180146eef8680a3909d340a1ca.zip |
Merge branch 'hsv/using_lists_droplast'
* hsv/using_lists_droplast:
lib/mnesia/test/ - Replace reverse(tl(reverse(L))) with lists:droplast/1
lib/ssh - Replace reverse(tl(reverse(L))) with lists:droplast/1
lib/wx - Replace reverse(tl(reverse(L))) with lists:droplast/1
Use lists:droplast/1 in orber/orber_interceptors.erl
Import and use lists:droplast/1 in v3_core/v3_kernel
OTP-11678
OTP-11677
Diffstat (limited to 'lib/ssh/src')
-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 213b5c714d..52665635f0 100644 --- a/lib/ssh/src/ssh_sftpd.erl +++ b/lib/ssh/src/ssh_sftpd.erl @@ -673,7 +673,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:reverse(tl(lists:reverse(AccPathComps0))) of + Path = case lists:droplast(AccPathComps0) of [] -> ""; AccPathComps -> |