diff options
Diffstat (limited to 'src/journal')
-rw-r--r-- | src/journal/journald-native.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/journal/journald-native.c b/src/journal/journald-native.c index 12fb980dd6..de8d6998cf 100644 --- a/src/journal/journald-native.c +++ b/src/journal/journald-native.c @@ -314,7 +314,7 @@ void server_process_native_file( return; } - if (strchr(e, '/')) { + if (!filename_is_safe(e)) { log_error("Received file in subdirectory of allowed directories. Refusing."); return; } |