chiark / gitweb /
coredump: also escape spaces in comm fields when formatting file names
[elogind.git] / src / journal / coredump.c
index 442c969778a5ddbd861a5a13b04c2b8ef0f03e1f..287e0ed7fdd065bd30053ae196ea1084858d3f2c 100644 (file)
@@ -186,7 +186,7 @@ static int fix_xattr(int fd, char *argv[]) {
         return r;
 }
 
-#define filename_escape(s) xescape((s), "./")
+#define filename_escape(s) xescape((s), "./ ")
 
 static int save_external_coredump(char **argv, uid_t uid, char **ret_filename, int *ret_fd, off_t *ret_size) {
         _cleanup_free_ char *p = NULL, *t = NULL, *c = NULL, *fn = NULL, *tmp = NULL;