summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorRonny Chevalier <chevalier.ronny@gmail.com>2015-10-16 21:33:17 +0200
committerRonny Chevalier <chevalier.ronny@gmail.com>2015-10-16 21:33:17 +0200
commit6a0dacb7aadc18da052fb4e6deb0b7a20919cdc1 (patch)
treeef7c974a2cae2268651b4cdee5a484dd57ea3f5a /src
parentafd69ca53363b0aa64cb40d19d6fe9e541308a33 (diff)
parentc2bbd90b5a60cfba87cee98fa4ad66de73036801 (diff)
Merge pull request #1582 from evverx/dump-runtime-dir-mode
core: dump RuntimeDirectories and RuntimeDirectoryMode too
Diffstat (limited to 'src')
-rw-r--r--src/core/execute.c7
1 files changed, 6 insertions, 1 deletions
diff --git a/src/core/execute.c b/src/core/execute.c
index d6217840c0..51efb7c215 100644
--- a/src/core/execute.c
+++ b/src/core/execute.c
@@ -2314,7 +2314,7 @@ static void strv_fprintf(FILE *f, char **l) {
}
void exec_context_dump(ExecContext *c, FILE* f, const char *prefix) {
- char **e;
+ char **e, **d;
unsigned i;
assert(c);
@@ -2350,6 +2350,11 @@ void exec_context_dump(ExecContext *c, FILE* f, const char *prefix) {
STRV_FOREACH(e, c->environment_files)
fprintf(f, "%sEnvironmentFile: %s\n", prefix, *e);
+ fprintf(f, "%sRuntimeDirectoryMode: %04o\n", prefix, c->runtime_directory_mode);
+
+ STRV_FOREACH(d, c->runtime_directory)
+ fprintf(f, "%sRuntimeDirectory: %s\n", prefix, *d);
+
if (c->nice_set)
fprintf(f,
"%sNice: %i\n",