From e7b81ca105f96a1bf1323cc2fbd42849c158a1aa Mon Sep 17 00:00:00 2001 From: Andrew Morton Date: Tue, 24 Aug 2021 10:00:02 +1000 Subject: [PATCH] log-if-a-core-dump-is-aborted-due-to-changed-file-permissions-fix s/|%s/%s/ in printk text Cc: Al Viro Cc: David Oberhollenzer Signed-off-by: Andrew Morton Signed-off-by: Stephen Rothwell --- fs/coredump.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/fs/coredump.c b/fs/coredump.c index 681c90e6c7fda..4b3c75732c97d 100644 --- a/fs/coredump.c +++ b/fs/coredump.c @@ -784,12 +784,12 @@ void do_coredump(const kernel_siginfo_t *siginfo) mnt_userns = file_mnt_user_ns(cprm.file); if (!uid_eq(i_uid_into_mnt(mnt_userns, inode), current_fsuid())) { - pr_info_ratelimited("Core dump to |%s aborted: cannot preserve file owner\n", + pr_info_ratelimited("Core dump to %s aborted: cannot preserve file owner\n", cn.corename); goto close_fail; } if ((inode->i_mode & 0677) != 0600) { - pr_info_ratelimited("Core dump to |%s aborted: cannot preserve file permissions\n", + pr_info_ratelimited("Core dump to %s aborted: cannot preserve file permissions\n", cn.corename); goto close_fail; } -- 2.50.1