chiark
/
gitweb
/
~ianmdlvl
/
elogind.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
man: improve grammar and word formatting in numerous man pages
[elogind.git]
/
src
/
sysctl
/
sysctl.c
diff --git
a/src/sysctl/sysctl.c
b/src/sysctl/sysctl.c
index 2d43660bb5285a8eaf5435f04a7be2bd8f2ec45f..db18dd9f6e69f7436813ae59de99a5844932f731 100644
(file)
--- a/
src/sysctl/sysctl.c
+++ b/
src/sysctl/sysctl.c
@@
-88,7
+88,7
@@
static int apply_sysctl(const char *property, const char *value) {
}
}
}
}
- k = write_
one_line
_file(p, value);
+ k = write_
string
_file(p, value);
if (k < 0) {
log_full(k == -ENOENT ? LOG_DEBUG : LOG_WARNING,
"Failed to write '%s' to '%s': %s", value, p, strerror(-k));
if (k < 0) {
log_full(k == -ENOENT ? LOG_DEBUG : LOG_WARNING,
"Failed to write '%s' to '%s': %s", value, p, strerror(-k));
@@
-125,7
+125,7
@@
static int parse_file(Hashmap *sysctl_options, const char *path, bool ignore_eno
r = search_and_fopen_nulstr(path, "re", conf_file_dirs, &f);
if (r < 0) {
r = search_and_fopen_nulstr(path, "re", conf_file_dirs, &f);
if (r < 0) {
- if (ignore_enoent &&
errno
== -ENOENT)
+ if (ignore_enoent &&
r
== -ENOENT)
return 0;
log_error("Failed to open file '%s', ignoring: %s", path, strerror(-r));
return 0;
log_error("Failed to open file '%s', ignoring: %s", path, strerror(-r));
@@
-149,7
+149,7
@@
static int parse_file(Hashmap *sysctl_options, const char *path, bool ignore_eno
if (!*p)
continue;
if (!*p)
continue;
- if (strchr(COMMENTS, *p))
+ if (strchr(COMMENTS
"\n"
, *p))
continue;
value = strchr(p, '=');
continue;
value = strchr(p, '=');