]> git.hungrycats.org Git - linux/commit
[PATCH] Restore /proc/pid/maps formatting
authorAndrew Morton <akpm@osdl.org>
Mon, 29 Dec 2003 13:44:58 +0000 (05:44 -0800)
committerLinus Torvalds <torvalds@home.osdl.org>
Mon, 29 Dec 2003 13:44:58 +0000 (05:44 -0800)
commit3f3a43781b570754071255349fc9ab9957aba483
treea30339688313f5c7a7cbce6e76a1b336e6b9dcc8
parente5d9d44e1f8a0c387ae5ef43e902e1ffe39107ce
[PATCH] Restore /proc/pid/maps formatting

The seq_file conversion of /proc/pid/maps caused altered behaviour with
respect to 2.4.22.  Before the conversion, spaces and tabs in filenames were
displayed verbatim.  After the conversion they are escaped as \040, etc.

Also, if the mmapped file has been unlinked the output appears as

40017000-40018000 rw-p 00000000 03:02 1425800    /home/akpm/foo\040(deleted)

instead of

40017000-40018000 rw-p 00000000 03:02 1425800    /home/akpm/foo (deleted)

This could break applications which parse /proc/pid/maps (one person has
reported this).

The patch restores the 2.4.20 behaviour.
fs/proc/task_mmu.c