Fix the bug that truncates existing inittab file 07/236307/2 accepted/tizen/devbase/tools/20200618.010551 submit/trunk/20200617.133020
authorJungwoo <jungwoo0.lee@samsung.com>
Tue, 16 Jun 2020 06:29:12 +0000 (15:29 +0900)
committerJUNGWOO LEE <jungwoo0.lee@samsung.com>
Tue, 16 Jun 2020 07:15:59 +0000 (07:15 +0000)
commit779c8df641f9b382418b1ca8262501441d4601cf
treef09f74a673e3e219e3f0465735a6172ba14753a6
parent5ad59ea7925ecf7e210ef5785319b1aeda8e6f11
Fix the bug that truncates existing inittab file

In case of python, open file with 'w' mode truncates a file.
To open a file without truncation, it shouldn't be opened with 'w' mode.
Since it already checked file's existence, set mode as 'r+'.
This patch makes script works as expected.

This bug comes from commit '2af16b806d7b9e76b534c1df150438bf9c62e68c'
"fix pylint errors for mic"

Change-Id: I633c13a77f01de74f7eb73a171611f14c135f192
mic/kickstart/__init__.py