chiark
/
gitweb
/
~ianmdlvl
/
elogind.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
util: rework /proc/cmdline parser to use unquote_first_word()
[elogind.git]
/
src
/
shared
/
condition.c
diff --git
a/src/shared/condition.c
b/src/shared/condition.c
index 08bebeee73c22619edd9833dd89b41467cff0972..c5a3caa4dbbe2b0e318d0bcf1850da70a433e042 100644
(file)
--- a/
src/shared/condition.c
+++ b/
src/shared/condition.c
@@
-93,8
+93,6
@@
static int condition_test_kernel_command_line(Condition *c) {
r = proc_cmdline(&line);
if (r < 0)
return r;
r = proc_cmdline(&line);
if (r < 0)
return r;
- if (r == 0)
- return false;
equal = !!strchr(c->parameter, '=');
p = line;
equal = !!strchr(c->parameter, '=');
p = line;
@@
-103,7
+101,7
@@
static int condition_test_kernel_command_line(Condition *c) {
_cleanup_free_ char *word = NULL;
bool found;
_cleanup_free_ char *word = NULL;
bool found;
- r = unquote_first_word(&p, &word);
+ r = unquote_first_word(&p, &word
, true
);
if (r < 0)
return r;
if (r == 0)
if (r < 0)
return r;
if (r == 0)