remove setuid(0) 78/150678/1 accepted/tizen/unified/20170920.081043 submit/tizen/20170918.083400
authorMyoungJune Park <mj2004.park@samsung.com>
Mon, 18 Sep 2017 08:32:31 +0000 (17:32 +0900)
committerMyoungJune Park <mj2004.park@samsung.com>
Mon, 18 Sep 2017 08:32:31 +0000 (17:32 +0900)
Change-Id: I363f816b16ca2dbcb8f3642e18f14e22a65323c5

src/factory-reset.c

index a0de7928fd137cf16b79ee2e8f8782274a32d48c..b3aaefb557b9b576c26d3f181037ce07e3d07056 100644 (file)
@@ -254,11 +254,13 @@ int main(int argc, char **argv)
                {0, 0, 0, 0}
        };
 
+#if 0
        ret = setuid(0);
        if (ret < 0) {
                perror("wrong permission");
                return -1;
        }
+#endif
 
        /* If there is no factory-reset backup file, don't try to reset. */
        while (!(fp = fopen(RESET_BACKUP_FILE[i++], "r"))) {