diff options
author | Rickard Green <[email protected]> | 2017-10-02 10:41:15 +0200 |
---|---|---|
committer | Rickard Green <[email protected]> | 2017-10-02 10:41:15 +0200 |
commit | 0717a2194e863f3a78595184ccc5637697f03353 (patch) | |
tree | ecc57cc352c8d2171c0f7a329799bfd92a325b73 /lib/kernel/test | |
parent | 71a40658a0cef8b3e25df3a8e48a72d0563a89bf (diff) | |
parent | eae496a72e270fd7af411714738e99a7fadfd19b (diff) | |
download | otp-0717a2194e863f3a78595184ccc5637697f03353.tar.gz otp-0717a2194e863f3a78595184ccc5637697f03353.tar.bz2 otp-0717a2194e863f3a78595184ccc5637697f03353.zip |
Merge branch 'rickard/null-char-filenames/ERL-370/OTP-14543' into maint
* rickard/null-char-filenames/ERL-370/OTP-14543:
Don't allow null in filenames
Diffstat (limited to 'lib/kernel/test')
-rw-r--r-- | lib/kernel/test/file_name_SUITE.erl | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/lib/kernel/test/file_name_SUITE.erl b/lib/kernel/test/file_name_SUITE.erl index 899102c908..f23529fec9 100644 --- a/lib/kernel/test/file_name_SUITE.erl +++ b/lib/kernel/test/file_name_SUITE.erl @@ -302,7 +302,9 @@ check_normal(Mod) -> {ok, BC} = Mod:read(FD,1024), ok = file:close(FD) end || {regular,Name,Content} <- NormalDir ], + {error, badarg} = Mod:rename("fil1\0tmp_fil2","tmp_fil1"), Mod:rename("fil1","tmp_fil1"), + {error, badarg} = Mod:read_file("tmp_fil1\0.txt"), {ok, <<"fil1">>} = Mod:read_file("tmp_fil1"), {error,enoent} = Mod:read_file("fil1"), Mod:rename("tmp_fil1","fil1"), |