From e04a292f8a2b8ff3c98d3ea3105617d89edeb0b0 Mon Sep 17 00:00:00 2001 From: Mike Frysinger Date: Sun, 13 Mar 2016 19:25:53 -0400 Subject: [PATCH] check-services: handle paths w/spaces --- .bin/gentoo-check-services | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/.bin/gentoo-check-services b/.bin/gentoo-check-services index bff7b33..54790af 100755 --- a/.bin/gentoo-check-services +++ b/.bin/gentoo-check-services @@ -39,7 +39,9 @@ def find_svcs(): if not line.endswith(' (deleted)\n'): continue # b71c7000-b7307000 rw-s 00000000 00:04 17024337 /dev/zero (deleted) - addr, perm, offset, dev, inode, path, _ = line.split() + addr, perm, offset, dev, inode, path = line.split(' ', 5) + # Handle paths with spaces. + path = path.rsplit(' ', 2)[0] if (path == '/[aio]' or path.startswith('/SYSV') or path.startswith('/dev/shm/')): -- 2.39.5