diff --git a/common/environment.c b/common/environment.c index 29b03e1..c314d7c 100644 --- a/common/environment.c +++ b/common/environment.c @@ -132,7 +132,7 @@ super->crc = ENVFS_32(crc32(0, buf + sizeof(struct envfs_super), size)); super->sb_crc = ENVFS_32(crc32(0, buf, sizeof(struct envfs_super) - 4)); - envfd = open(filename, O_WRONLY | O_CREAT); + envfd = open(filename, O_WRONLY | O_CREAT, S_IRUSR | S_IWUSR); if (envfd < 0) { printf("Open %s %s\n", filename, errno_str()); ret = envfd;