chiark
/
gitweb
/
~ianmdlvl
/
elogind.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
condition: in ConditionPathIsExecutable follow symlinks
[elogind.git]
/
src
/
condition.c
diff --git
a/src/condition.c
b/src/condition.c
index f9202f68508d9aafd12e53f14e9781f00a332e46..933aec8485ebb5ab0ec048d8ed2a5324e45493c6 100644
(file)
--- a/
src/condition.c
+++ b/
src/condition.c
@@
-75,7
+75,7
@@
static bool test_kernel_command_line(const char *parameter) {
assert(parameter);
assert(parameter);
- if (detect_
virtualization
(NULL) > 0)
+ if (detect_
container
(NULL) > 0)
return false;
if ((r = read_one_line_file("/proc/cmdline", &line)) < 0) {
return false;
if ((r = read_one_line_file("/proc/cmdline", &line)) < 0) {
@@
-171,7
+171,7
@@
bool condition_test(Condition *c) {
case CONDITION_FILE_IS_EXECUTABLE: {
struct stat st;
case CONDITION_FILE_IS_EXECUTABLE: {
struct stat st;
- if (
l
stat(c->parameter, &st) < 0)
+ if (stat(c->parameter, &st) < 0)
return !c->negate;
return (S_ISREG(st.st_mode) && (st.st_mode & 0111)) == !c->negate;
return !c->negate;
return (S_ISREG(st.st_mode) && (st.st_mode & 0111)) == !c->negate;