summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--common/environment.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/common/environment.c b/common/environment.c
index 29b03e17d8..c314d7cccc 100644
--- a/common/environment.c
+++ b/common/environment.c
@@ -132,7 +132,7 @@ int envfs_save(char *filename, char *dirname)
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;