Replace system command to posix function 75/126575/1 accepted/tizen_3.0_ivi accepted/tizen/3.0/common/20170508.152958 accepted/tizen/3.0/ivi/20170508.045952 accepted/tizen/3.0/mobile/20170508.045915 accepted/tizen/3.0/tv/20170508.045934 accepted/tizen/3.0/wearable/20170508.045938 submit/tizen_3.0-common/20170508.080135 submit/tizen_3.0-common/20170508.081301 submit/tizen_3.0-common/20170508.091535 submit/tizen_3.0/20170427.223341 submit/tizen_3.0_common/20170508.091735
authorJiyong Min <jiyong.min@samsung.com>
Mon, 24 Apr 2017 07:35:14 +0000 (16:35 +0900)
committerJiyong Min <jiyong.min@samsung.com>
Mon, 24 Apr 2017 07:41:38 +0000 (16:41 +0900)
Change-Id: Ia6129901c6cade68c3f9d676930413c05f627de8
Signed-off-by: Jiyong Min <jiyong.min@samsung.com>
packaging/media-server.spec
src/server/media-server-db-manage.c

index def9b22..b04b2fa 100755 (executable)
@@ -1,6 +1,6 @@
 Name:       media-server
 Summary:    A server for media content management
-Version:    0.3.34
+Version:    0.3.35
 Release:    0
 Group:      Multimedia/Service
 License:    Apache-2.0
index e488d71..ca25a70 100755 (executable)
@@ -43,11 +43,7 @@ int ms_reset_mediadb(uid_t uid)
 \r
        ret = media_db_get_media_db_path(uid, &db_path);\r
        if ((ret == MS_MEDIA_ERR_NONE) && (db_path != NULL)) {\r
-               char command_line[MS_FILE_PATH_LEN_MAX] = {0,};\r
-               snprintf(command_line, sizeof(command_line), "%s %s %s",  command, dummy_path, db_path);\r
-\r
-               MS_DBG_ERR("[RESET COMMAND %s]",command_line);\r
-               WEXITSTATUS(system(command_line));\r
+               execl(command, command, dummy_path, db_path, NULL);\r
        }\r
 \r
        MS_SAFE_FREE(db_path);\r