#1124654 /usr/bin/ofl: ofl should not report sub-tasks (threads)

Package:
hxtools
Source:
hxtools
Description:
Collection of tools and scripts
Submitter:
Witold Baryluk
Date:
2026-01-05 06:11:03 UTC
Severity:
normal
#1124654#5
Date:
2026-01-05 06:07:59 UTC
From:
To:
# ofl /home/user/vxy
837848(bash): /proc/837848/cwd -> /home/user/vxy/home/foo
931317(python3.13): /proc/931317/cwd -> /home/user/vxy/home/foo
938724(soffice.bin): /proc/938724/task/938724/fd/27 -> /home/user/vxy/home/foo/bar.ods
938724(soffice.bin): /proc/938724/task/938755/fd/27 -> /home/user/vxy/home/foo/bar.ods
938724(soffice.bin): /proc/938724/task/938756/fd/27 -> /home/user/vxy/home/foo/bar.ods
938724(soffice.bin): /proc/938724/task/938757/fd/27 -> /home/user/vxy/home/foo/bar.ods
938724(soffice.bin): /proc/938724/task/938758/fd/27 -> /home/user/vxy/home/foo/bar.ods
938724(soffice.bin): /proc/938724/task/938759/fd/27 -> /home/user/vxy/home/foo/bar.ods
938724(soffice.bin): /proc/938724/task/938761/fd/27 -> /home/user/vxy/home/foo/bar.ods
938724(soffice.bin): /proc/938724/task/938762/fd/27 -> /home/user/vxy/home/foo/bar.ods
938724(soffice.bin): /proc/938724/task/1049113/fd/27 -> /home/user/vxy/home/foo/bar.ods
1057786(bash): /proc/1057786/cwd -> /home/user/vxy/home/foo/smth
1836670(sudo): /proc/1836670/cwd -> /home/user/vxy/home/foo/smth
1836676(sudo): /proc/1836676/cwd -> /home/user/vxy/home/foo/smth
#

This is rather unecassary, as all file descriptors and files are shared
by all tasks in the process (and I doubt there is for them to be not shared).
This is also different than lsfd (or lsof) does.

# lsfd | grep /home/user/vxy
bash             837848        user    cwd ------         DIR      fuse.sshfs     0                  41 /home/user/vxy/home/foo
python3          931317        user    cwd ------         DIR      fuse.sshfs     0                  41 /home/user/vxy/home/foo
soffice.bin      938724        user     27 rw----         REG      fuse.sshfs   105                 663 /home/user/vxy/home/foo/bar.ods
bash            1057786        user    cwd ------         DIR      fuse.sshfs     0                 422 /home/user/vxy/home/foo/smth
sudo            1836670        root    cwd ------         DIR      fuse.sshfs     0                 422 /home/user/vxy/home/foo/smth
sudo            1836676        root    cwd ------         DIR      fuse.sshfs     0                 422 /home/user/vxy/home/foo/smth
#