projects
/
platform
/
core
/
api
/
mtp.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
5fd803f
)
Change permission to readonly for db file
97/256897/1
accepted/tizen_6.5_unified
accepted/tizen_7.0_unified
accepted/tizen_7.0_unified_hotfix
tizen_6.5
tizen_7.0_hotfix
accepted/tizen/6.5/unified/20211028.095910
accepted/tizen/7.0/unified/20221110.062851
accepted/tizen/7.0/unified/hotfix/20221116.104749
accepted/tizen/unified/20210420.002119
submit/tizen/20210419.073346
submit/tizen_6.5/20211028.161801
tizen_6.5.m2_release
tizen_7.0_m2_release
author
Jihoon Jung
<jh8801.jung@samsung.com>
Wed, 14 Apr 2021 08:28:44 +0000
(17:28 +0900)
committer
Jihoon Jung
<jh8801.jung@samsung.com>
Wed, 14 Apr 2021 08:28:44 +0000
(17:28 +0900)
Change-Id: Ia703fbf83fd025859c21608e8152ae6f7936cdd2
Signed-off-by: Jihoon Jung <jh8801.jung@samsung.com>
src/mtp_db.c
patch
|
blob
|
history
diff --git
a/src/mtp_db.c
b/src/mtp_db.c
index
f0c9613
..
38428b5
100755
(executable)
--- a/
src/mtp_db.c
+++ b/
src/mtp_db.c
@@
-38,7
+38,7
@@
mtp_error_e mtp_db_init()
if (db == NULL) {
sql_ret = sqlite3_open_v2(MTP_DB_FILE, &db,
- SQLITE_OPEN_FULLMUTEX | SQLITE_OPEN_READ
WRITE
, NULL);
+ SQLITE_OPEN_FULLMUTEX | SQLITE_OPEN_READ
ONLY
, NULL);
if (sql_ret != SQLITE_OK)
ret = MTP_ERROR_DB; /* LCOV_EXCL_LINE */
@@
-136,4
+136,4
@@
mtp_error_e mtp_db_deinit()
MTP_DB_UNLOCK;
return ret;
-}
\ No newline at end of file
+}