mirror of
https://github.com/CHN-beta/nixos.git
synced 2024-10-24 16:18:44 +08:00
14 lines
456 B
Diff
14 lines
456 B
Diff
|
diff --git a/snapper/FileUtils.cc b/snapper/FileUtils.cc
|
||
|
index 9da572f..48f60fa 100644
|
||
|
--- a/snapper/FileUtils.cc
|
||
|
+++ b/snapper/FileUtils.cc
|
||
|
@@ -424,7 +424,7 @@ namespace snapper
|
||
|
v /= 62;
|
||
|
}
|
||
|
|
||
|
- int fd = open(name, O_RDWR | O_CREAT | O_EXCL | O_CLOEXEC, S_IRUSR | S_IWUSR);
|
||
|
+ int fd = open(name, O_RDWR | O_CREAT | O_EXCL | O_CLOEXEC, S_IRUSR | S_IWUSR | S_IRGRP | S_IROTH);
|
||
|
if (fd >= 0)
|
||
|
return fd;
|
||
|
else if (errno != EEXIST)
|