chiark / gitweb /
journal: implement time-based rotation/vacuuming
[elogind.git] / src / journal / journald-native.c
index 12fb980dd6c5312df7c8875332ae3d05f0003c69..de8d6998cfdc0c7a35d381041d7d308be72ef802 100644 (file)
@@ -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;
                 }