summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorMyoungJune Park <mj2004.park@samsung.com>2017-09-18 17:32:31 +0900
committerMyoungJune Park <mj2004.park@samsung.com>2017-09-18 08:32:48 +0000
commit7a07153ec476c67ddd2983c4c590101339c57c6f (patch)
tree9d13fd062be03f9078fae9f5742f925d847adc9f /src
parentd900ea887e1c8473bfa40411caef09d0326c5638 (diff)
downloadfactory-reset-7a07153ec476c67ddd2983c4c590101339c57c6f.tar.gz
factory-reset-7a07153ec476c67ddd2983c4c590101339c57c6f.tar.bz2
factory-reset-7a07153ec476c67ddd2983c4c590101339c57c6f.zip
Change-Id: I363f816b16ca2dbcb8f3642e18f14e22a65323c5
Diffstat (limited to 'src')
-rw-r--r--src/factory-reset.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/factory-reset.c b/src/factory-reset.c
index a0de792..b3aaefb 100644
--- a/src/factory-reset.c
+++ b/src/factory-reset.c
@@ -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"))) {