1
0
mirror of https://github.com/systemd/systemd.git synced 2024-11-07 18:27:04 +03:00

Merge pull request #1582 from evverx/dump-runtime-dir-mode

core: dump RuntimeDirectories and RuntimeDirectoryMode too
This commit is contained in:
Ronny Chevalier 2015-10-16 21:33:17 +02:00
commit 6a0dacb7aa

View File

@ -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",