summaryrefslogtreecommitdiff
path: root/libutils/Unicode.cpp
diff options
context:
space:
mode:
authorRuslan Trofymenko <ruslan.trofymenko@linaro.org>2018-12-19 17:00:09 +0200
committerRuslan Trofymenko <ruslan.trofymenko@linaro.org>2018-12-19 20:03:10 +0200
commit23249c9fc5153c57ed876c4522cce918eb86b67c (patch)
tree7a87e51fa7ba8c6f4d437c6c966d458587eb3aac /libutils/Unicode.cpp
parent1baa19b1a6bec9c0b1b067eef378646c62d9bf1b (diff)
fs_mgr: Fix kernel command line parsing
Remove new line character ('\n') from the kernel command line after reading from '/proc/cmdline'. This character is not contained in the original string and is added as a result of reading (according to kernel source codes [1]): ... seq_puts(m, saved_command_line); seq_putc(m, '\n'); ... As a result, this may corrupt the last argument of the string. For example, if the last argument is 'androidboot.slot_suffix=_a', then the target partition ('vendor_a\n') will not be found in fstab section of the device tree. [1] fs/proc/cmdline.c Change-Id: I96a853f1f55f27d782afe2ca8c0b006a75368149 Signed-off-by: Ruslan Trofymenko <ruslan.trofymenko@linaro.org>
Diffstat (limited to 'libutils/Unicode.cpp')
0 files changed, 0 insertions, 0 deletions