• Andrew Morton's avatar
    [PATCH] Restore /proc/pid/maps formatting · 3f3a4378
    Andrew Morton authored
    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.
    3f3a4378
task_mmu.c 3.3 KB