summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--cryptfs.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/cryptfs.c b/cryptfs.c
index e1c177d..e6439fe 100644
--- a/cryptfs.c
+++ b/cryptfs.c
@@ -1370,7 +1370,7 @@ int cryptfs_enable(char *howarg, char *passwd)
/* wipe data if encryption failed */
SLOGE("encryption failed - rebooting into recovery to wipe data\n");
mkdir("/cache/recovery", 0700);
- int fd = open("/cache/recovery/command", O_RDWR|O_CREAT|O_TRUNC);
+ int fd = open("/cache/recovery/command", O_RDWR|O_CREAT|O_TRUNC, 0600);
if (fd >= 0) {
write(fd, "--wipe_data", strlen("--wipe_data") + 1);
close(fd);