summaryrefslogtreecommitdiff
path: root/src/journal
diff options
context:
space:
mode:
authorLennart Poettering <lennart@poettering.net>2014-06-23 12:39:53 +0200
committerLennart Poettering <lennart@poettering.net>2014-06-23 12:40:38 +0200
commitb0b21dce0e88da8848f4eaf34b54318f0589000c (patch)
treee012c018abc4b1b6692573335ecef509ce2ff008 /src/journal
parenta900b827d4d67f4961d2e4ed48d73e6bc1d6b4b6 (diff)
coredump: also escape spaces in comm fields when formatting file names
Diffstat (limited to 'src/journal')
-rw-r--r--src/journal/coredump.c2
-rw-r--r--src/journal/coredumpctl.c2
2 files changed, 2 insertions, 2 deletions
diff --git a/src/journal/coredump.c b/src/journal/coredump.c
index 442c969778..287e0ed7fd 100644
--- a/src/journal/coredump.c
+++ b/src/journal/coredump.c
@@ -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;
diff --git a/src/journal/coredumpctl.c b/src/journal/coredumpctl.c
index 541dda022d..4f50f1b139 100644
--- a/src/journal/coredumpctl.c
+++ b/src/journal/coredumpctl.c
@@ -280,7 +280,7 @@ static int retrieve(const void *data,
return 0;
}
-#define filename_escape(s) xescape((s), "./")
+#define filename_escape(s) xescape((s), "./ ")
static int make_coredump_path(sd_journal *j, char **ret) {
_cleanup_free_ char