diff options
-rw-r--r-- | cryptfs.c | 2 |
1 files changed, 1 insertions, 1 deletions
@@ -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); |