summaryrefslogtreecommitdiff
path: root/fs
diff options
context:
space:
mode:
authorLinus Torvalds <torvalds@linux-foundation.org>2022-08-14 03:35:58 +0300
committerLinus Torvalds <torvalds@linux-foundation.org>2022-08-14 03:35:58 +0300
commitaea23e7c464bfdec04b52cf61edb62030e9e0d0a (patch)
tree6ea34812cda170a756b900ff6de5aa8ede93dca7 /fs
parent332019e23a51db1aa46fec695a9a763445fbe09f (diff)
parented5fce76b5ea40c87b44cafbe4f3222da8ec981a (diff)
downloadlinux-aea23e7c464bfdec04b52cf61edb62030e9e0d0a.tar.xz
Merge tag 'pull-work.misc' of git://git.kernel.org/pub/scm/linux/kernel/git/viro/vfs
Pull /proc/mounts fix from Al Viro: "Fix for /proc/mounts escaping - escape the '#' character too" * tag 'pull-work.misc' of git://git.kernel.org/pub/scm/linux/kernel/git/viro/vfs: vfs: escape hash as well
Diffstat (limited to 'fs')
-rw-r--r--fs/proc_namespace.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/fs/proc_namespace.c b/fs/proc_namespace.c
index 49650e54d2f8..846f9455ae22 100644
--- a/fs/proc_namespace.c
+++ b/fs/proc_namespace.c
@@ -86,7 +86,7 @@ static void show_mnt_opts(struct seq_file *m, struct vfsmount *mnt)
static inline void mangle(struct seq_file *m, const char *s)
{
- seq_escape(m, s, " \t\n\\");
+ seq_escape(m, s, " \t\n\\#");
}
static void show_type(struct seq_file *m, struct super_block *sb)