coredump: also escape spaces in comm fields when formatting file names

This commit is contained in:
Lennart Poettering 2014-06-23 12:39:53 +02:00
parent a900b827d4
commit b0b21dce0e
2 changed files with 2 additions and 2 deletions

View 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;

View File

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