From: Mike Frysinger Date: Sun, 13 Mar 2016 23:25:53 +0000 (-0400) Subject: check-services: handle paths w/spaces X-Git-Url: https://git.wh0rd.org/?a=commitdiff_plain;h=e04a292f8a2b8ff3c98d3ea3105617d89edeb0b0;p=home.git check-services: handle paths w/spaces --- 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/')):