The mount point is set to PATH_MAX but if octal escaping is used
then it will exceed this limit.
Fixes rhbz#
1078887 (no url, its a restricted access bug)
References:
https://sourceforge.net/p/psmisc/patches/37/
Signed-off-by: Craig Small <csmall@enc.com.au>
Changes in 22.22
================
+ * fuser: increase path length for octal escaping SF [#37]
* Make usage of linked lists of devices found in
/proc/self/mountinfo optional
* Make timeout() in timeout.c work with shared mmap to
static void init_mntinfo(void)
{
- char mpoint[PATH_MAX + 1];
+ char mpoint[PATH_MAX*4 + 1]; // octal escaping takes 4 chars per 1 char
int mid, parid, max = 0;
uint maj, min;
list_t sort;