diff options
author | Heinrich Schuchardt | 2018-07-02 02:41:23 +0200 |
---|---|---|
committer | Alexander Graf | 2018-07-25 14:59:44 +0200 |
commit | 0dc1bfb7302d220a48364263d5632d6d572b069b (patch) | |
tree | f300fb9a8dcd6c034735ab1b5e8d6d7768656c2f /dts | |
parent | 1fcb7ea28400aa69e157dc4b19c9667e96d3a033 (diff) |
fs: fat: cannot write to subdirectories
fs_fat_write() is not able to write to subdirectories.
Currently if a filepath with a leading slash is passed, the slash is
treated as part of the filename to be created in the root directory.
Strip leading (back-)slashes.
Check that the remaining filename does not contain any illegal characters
(<>:"/\|?*). This way we will throw an error when trying to write to a
subdirectory.
Signed-off-by: Heinrich Schuchardt <xypron.glpk@gmx.de>
Signed-off-by: Alexander Graf <agraf@suse.de>
Diffstat (limited to 'dts')
0 files changed, 0 insertions, 0 deletions