chiark
/
gitweb
/
~ianmdlvl
/
elogind.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
exec: optionally apply cgroup attributes to the cgroups we create
[elogind.git]
/
src
/
cryptsetup-generator.c
diff --git
a/src/cryptsetup-generator.c
b/src/cryptsetup-generator.c
index 696f44ae3670dee8868a1b97f6d8d93858560c30..a340218fda0d177bb1b2811bac3a075ca609ebe8 100644
(file)
--- a/
src/cryptsetup-generator.c
+++ b/
src/cryptsetup-generator.c
@@
-47,7
+47,7
@@
static bool has_option(const char *haystack, const char *needle) {
continue;
}
continue;
}
- if (f[l] != 0 && f[l]
=
= ',') {
+ if (f[l] != 0 && f[l]
!
= ',') {
f++;
continue;
}
f++;
continue;
}
@@
-246,6
+246,8
@@
int main(int argc, char *argv[]) {
log_parse_environment();
log_open();
log_parse_environment();
log_open();
+ umask(0022);
+
if (!(f = fopen("/etc/crypttab", "re"))) {
if (errno == ENOENT)
if (!(f = fopen("/etc/crypttab", "re"))) {
if (errno == ENOENT)