Fix wrong option name 98/144898/2
authorSangyoon Jang <jeremy.jang@samsung.com>
Fri, 18 Aug 2017 08:39:21 +0000 (17:39 +0900)
committerSangyoon Jang <jeremy.jang@samsung.com>
Fri, 18 Aug 2017 08:39:48 +0000 (17:39 +0900)
Change-Id: Ieb59d0a603230400f9b232f785cc5f2ab610e353
Signed-off-by: Sangyoon Jang <jeremy.jang@samsung.com>
src/install_preload_pkg.c

index 8fda943..60662e5 100644 (file)
@@ -55,7 +55,7 @@
 #define WGT_RW_DIR tzplatform_mkpath(TZ_SYS_RO_APP, ".preload-rw-wgt")
 
 static int _install_preload_pkg(const char *backend, const char *directory,
-               bool readonly, bool skip_reference_check)
+               bool readonly, bool skip_check_reference)
 {
        DIR *dir;
        struct dirent *file_info;
@@ -89,7 +89,7 @@ static int _install_preload_pkg(const char *backend, const char *directory,
                if (pid == 0) {
                        execl(backend, backend, "-i", file_path,
                                readonly ? "--preload" : "--preload-rw",
-                               skip_reference_check ?
+                               skip_check_reference ?
                                        "--skip-check-reference" :
                                        "",
                                (char *)NULL);
@@ -138,30 +138,30 @@ int main(int argc, char *argv[])
        char err_msg[BUFSZE];
        int handle = -1;
        int ret;
-       bool skip_reference_check = false;
+       bool skip_check_reference = false;
 
        if (!_is_authorized(getuid())) {
                _E("You are not an authorized user!");
                return -1;
        }
 
-       if (argc > 1 && !strcmp(argv[1], "--skip-reference-check"))
-               skip_reference_check = true;
+       if (argc > 1 && !strcmp(argv[1], "--skip-check-reference"))
+               skip_check_reference = true;
 
        if (_install_preload_pkg(TPK_BACKEND_CMD, TPK_DIR, true,
-                               skip_reference_check) < 0)
+                               skip_check_reference) < 0)
                goto error;
 
        if (_install_preload_pkg(WGT_BACKEND_CMD, WGT_DIR, true,
-                               skip_reference_check) < 0)
+                               skip_check_reference) < 0)
                goto error;
 
        if (_install_preload_pkg(TPK_BACKEND_CMD, TPK_RW_DIR, false,
-                               skip_reference_check) < 0)
+                               skip_check_reference) < 0)
                goto error;
 
        if (_install_preload_pkg(WGT_BACKEND_CMD, WGT_RW_DIR, false,
-                               skip_reference_check) < 0)
+                               skip_check_reference) < 0)
                goto error;
 
        return 0;