From: Jaromír Cápík Date: Mon, 25 Apr 2016 01:25:38 +0000 (+1000) Subject: fuser: increase mpoint length of for octal escape X-Git-Tag: v23.0rc1~19 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=e7aeecb644957559be0ad6f8bf8398814f1c3ec9;p=psmisc fuser: increase mpoint length of for octal escape 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 --- diff --git a/ChangeLog b/ChangeLog index 8723d92..ac943ef 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,5 +1,6 @@ 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 diff --git a/src/fuser.c b/src/fuser.c index 380046f..5e63de7 100644 --- a/src/fuser.c +++ b/src/fuser.c @@ -1852,7 +1852,7 @@ static void clear_mntinfo(void) 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;