tag:github.com,2008:https://github.com/lsof-org/lsof/releases Release notes from lsof 2025-07-01T04:32:21Z tag:github.com,2008:Repository/141953815/4.99.5 2025-07-01T04:43:36Z lsof 4.99.5 <ul> <li>[linux] fix legacy linux kernel compatibility due to missing /proc/self/ns (<a class="issue-link js-issue-link" data-error-text="Failed to load title" data-id="2774899527" data-permission-text="Title is private" data-url="https://github.com/lsof-org/lsof/issues/329" data-hovercard-type="pull_request" data-hovercard-url="/lsof-org/lsof/pull/329/hovercard" href="https://github.com/lsof-org/lsof/pull/329">#329</a>)</li> <li>[linux] fix potential null pointer deference, reported by @mono-trip (<a class="issue-link js-issue-link" data-error-text="Failed to load title" data-id="3184579596" data-permission-text="Title is private" data-url="https://github.com/lsof-org/lsof/issues/332" data-hovercard-type="issue" data-hovercard-url="/lsof-org/lsof/issues/332/hovercard" href="https://github.com/lsof-org/lsof/issues/332">#332</a>)</li> </ul> jiegec tag:github.com,2008:Repository/141953815/4.99.4 2024-11-18T02:13:32Z lsof 4.99.4 <div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content=" fix version parser for clang (lsof-org#305) (#306) In lsof manapge: mention /etc/services for -P option (#309) [freebsd] don't use kf_sock_inpcb on modern versions. In FreeBSD 14 and after the generic internet protocol control block and protocol specific (TCP) control block are the same pointer. The latter embeds the former. The kf_sock_inpcb is planned for removal in FreeBSD 15. [freebsd] Recognize FreeBSD 15 Fix typos in docs (#314) [linux] Do not embed kernel version in CFLAGS (#314) [linux] Linux 6.9 changed the pidfs appearence in procfs. Try to maintain original output in lsof (#317) [linux] closefrom_shim: Add optimized fallback for platforms without closefrom or close_range (#316) lib/misc.c: fix build against -std=c23 (`void (*)()`) changed the meaning) (#327)"><pre class="notranslate"><code> fix version parser for clang (lsof-org#305) (#306) In lsof manapge: mention /etc/services for -P option (#309) [freebsd] don't use kf_sock_inpcb on modern versions. In FreeBSD 14 and after the generic internet protocol control block and protocol specific (TCP) control block are the same pointer. The latter embeds the former. The kf_sock_inpcb is planned for removal in FreeBSD 15. [freebsd] Recognize FreeBSD 15 Fix typos in docs (#314) [linux] Do not embed kernel version in CFLAGS (#314) [linux] Linux 6.9 changed the pidfs appearence in procfs. Try to maintain original output in lsof (#317) [linux] closefrom_shim: Add optimized fallback for platforms without closefrom or close_range (#316) lib/misc.c: fix build against -std=c23 (`void (*)()`) changed the meaning) (#327) </code></pre></div> jiegec tag:github.com,2008:Repository/141953815/4.99.3 2023-12-24T02:16:42Z lsof 4.99.3 <p>Fix a spaces vs. tabs issue in 00DIST.</p> lrosenman tag:github.com,2008:Repository/141953815/4.99.2 2023-12-24T02:18:05Z lsof 4.99.2 <p>Fix version file for CI</p> lrosenman tag:github.com,2008:Repository/141953815/4.99.1 2023-12-24T02:18:47Z lsof 4.99.1 - fix a few bugs <div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content=" Fix compilation error when HASIPv6 is not defined. (@chenrui333) Add configure option --disable-liblsof to disable installation of liblsof. (@subnut, #300) [freebsd] fix segfault from fs info (FreeBSD bug 267760)"><pre class="notranslate"><code> Fix compilation error when HASIPv6 is not defined. (@chenrui333) Add configure option --disable-liblsof to disable installation of liblsof. (@subnut, #300) [freebsd] fix segfault from fs info (FreeBSD bug 267760) </code></pre></div> lrosenman tag:github.com,2008:Repository/141953815/4.99.0 2023-11-10T07:12:59Z lsof-4.99.0 <div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content=" [netbsd] Get device numer of tmpfs instead of reporting zero [openbsd] Rewrite OpenBSD support because OpenBSD disallows kernel memory access and lsof has to switch to user mode API. Currently, most features are working, but file path reporting and lock status are not working for lack of kernel support. As a consequence, OpenBSD dialect is separated in a new folder. [darwin] Remove /dev/kmem backend because it no longer exists on current macOS releases. Use libproc backend instead. [linux] Do not hard-code fd numbers in epoll test, fixing tests on Void Linux [freebsd] Use kf_file_nlink if provided by kernel instead of stat(). This commit requires kernel with https://reviews.freebsd.org/D38169. It brings back the ability to list deleted files via `lsof +L1`. Closes #264. [linux] Add --with-selinux configure option. [solaris] Re-introduce support for recent Solaris &amp; OpenIndiana releases. [darwin] Display kern ctl info, learned from apple lsof version. [linux] Improve performance by using closefrom(). Closes #281. [aix] Fix compilation on AIX 7.2 and add autotools build system support for AIX. [aix] Suppress warnings properly on AIX version greater than 5.0. Closes #187. Introduce alpha version of liblsof which allows users to use lsof functionality via C functions instead of spawning a subprocess and parsing the output. This version may contain BUGs and memory leaks, and the API may change before it stablizes."><pre class="notranslate"><code> [netbsd] Get device numer of tmpfs instead of reporting zero [openbsd] Rewrite OpenBSD support because OpenBSD disallows kernel memory access and lsof has to switch to user mode API. Currently, most features are working, but file path reporting and lock status are not working for lack of kernel support. As a consequence, OpenBSD dialect is separated in a new folder. [darwin] Remove /dev/kmem backend because it no longer exists on current macOS releases. Use libproc backend instead. [linux] Do not hard-code fd numbers in epoll test, fixing tests on Void Linux [freebsd] Use kf_file_nlink if provided by kernel instead of stat(). This commit requires kernel with https://reviews.freebsd.org/D38169. It brings back the ability to list deleted files via `lsof +L1`. Closes #264. [linux] Add --with-selinux configure option. [solaris] Re-introduce support for recent Solaris &amp; OpenIndiana releases. [darwin] Display kern ctl info, learned from apple lsof version. [linux] Improve performance by using closefrom(). Closes #281. [aix] Fix compilation on AIX 7.2 and add autotools build system support for AIX. [aix] Suppress warnings properly on AIX version greater than 5.0. Closes #187. Introduce alpha version of liblsof which allows users to use lsof functionality via C functions instead of spawning a subprocess and parsing the output. This version may contain BUGs and memory leaks, and the API may change before it stablizes. </code></pre></div> jiegec tag:github.com,2008:Repository/141953815/4.98.0 2023-01-22T13:22:47Z lsof-4.98.0 <div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content=" Fix two potential null pointer access bug when gethostbyname2() returns an empty address list Add support for older automake versions (on e.g. CentOS 7) Migrate testing scripts and programs to autotools Extend CI to build on more Linux distros [linux] Fix handling of empty command name, closing #246. Add test from #246, where lsof returns stale command name when the command name is empty. If getting command name failed, return NULL instead of empty string Add --with/without-libtirpc option to autotools-based build system and automatically detect libtirpc by default Add -H switch to print human readable size, e.g. 123.4K (#260) [linux] Fix implicit declaration error when HASPTYEPT is undefined Add support for musl libc-based Linux distros Add --enable-security argument to configure to allow only the root user to list all open files Add --enable-no-sock-security argument to configure to allow anyone to list anyone else's socket files when combined with --enable-security [linux] Always enable 64 bit off_t in configure.ac [netbsd] Import patches from pkgsrc and port autotools-based build system to NetBSD [netbsd] Fix lock status reading"><pre class="notranslate"><code> Fix two potential null pointer access bug when gethostbyname2() returns an empty address list Add support for older automake versions (on e.g. CentOS 7) Migrate testing scripts and programs to autotools Extend CI to build on more Linux distros [linux] Fix handling of empty command name, closing #246. Add test from #246, where lsof returns stale command name when the command name is empty. If getting command name failed, return NULL instead of empty string Add --with/without-libtirpc option to autotools-based build system and automatically detect libtirpc by default Add -H switch to print human readable size, e.g. 123.4K (#260) [linux] Fix implicit declaration error when HASPTYEPT is undefined Add support for musl libc-based Linux distros Add --enable-security argument to configure to allow only the root user to list all open files Add --enable-no-sock-security argument to configure to allow anyone to list anyone else's socket files when combined with --enable-security [linux] Always enable 64 bit off_t in configure.ac [netbsd] Import patches from pkgsrc and port autotools-based build system to NetBSD [netbsd] Fix lock status reading </code></pre></div> jiegec tag:github.com,2008:Repository/141953815/4.97.0 2023-01-17T06:44:03Z lsof-4.97.0 <p>[decof/du/tru64] Remove support because the os is no longer updated for more than 10 years</p> <p>[openstep/nextstep] Remove support because the os is no longer updated for more than 20 years</p> <p>Add experimental build system based on Autotools (<a class="issue-link js-issue-link" data-error-text="Failed to load title" data-id="1531519876" data-permission-text="Title is private" data-url="https://github.com/lsof-org/lsof/issues/270" data-hovercard-type="pull_request" data-hovercard-url="/lsof-org/lsof/pull/270/hovercard" href="https://github.com/lsof-org/lsof/pull/270">#270</a>)</p> <p>Fixed LTsock testing on darwin (<a class="issue-link js-issue-link" data-error-text="Failed to load title" data-id="1533124488" data-permission-text="Title is private" data-url="https://github.com/lsof-org/lsof/issues/272" data-hovercard-type="pull_request" data-hovercard-url="/lsof-org/lsof/pull/272/hovercard" href="https://github.com/lsof-org/lsof/pull/272">#272</a>)</p> <p>Remove NEW and OLD folders (<a class="issue-link js-issue-link" data-error-text="Failed to load title" data-id="417621846" data-permission-text="Title is private" data-url="https://github.com/lsof-org/lsof/issues/6" data-hovercard-type="issue" data-hovercard-url="/lsof-org/lsof/issues/6/hovercard" href="https://github.com/lsof-org/lsof/issues/6">#6</a>)</p> <p>Fix FreeBSD testcases (<a class="issue-link js-issue-link" data-error-text="Failed to load title" data-id="1532700683" data-permission-text="Title is private" data-url="https://github.com/lsof-org/lsof/issues/271" data-hovercard-type="pull_request" data-hovercard-url="/lsof-org/lsof/pull/271/hovercard" href="https://github.com/lsof-org/lsof/pull/271">#271</a>)</p> <p>Rewrite documentation and publish at <a href="https://lsof.readthedocs.io/" rel="nofollow">https://lsof.readthedocs.io/</a></p> jiegec tag:github.com,2008:Repository/141953815/4.96.5 2022-12-26T14:58:54Z 4.96.5: [FreeBSD] add include <sys/callout.h> for recent FreeBSD changes <p>4.96.5 December 26, 2022</p> <div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content=" [linux] Use correct scanf/printf format for uint64_t (#266) Avoid C89-only constructs in Configure (#265) [freebsd] add &lt;sys/callout.h&gt; for recent changes"><pre class="notranslate"><code> [linux] Use correct scanf/printf format for uint64_t (#266) Avoid C89-only constructs in Configure (#265) [freebsd] add &lt;sys/callout.h&gt; for recent changes </code></pre></div> lrosenman tag:github.com,2008:Repository/141953815/4.96.4 2022-10-18T16:46:20Z lsof-4.96.4 <p>4.96.4 October 18, 2022</p> <div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content=" [FreeBSD] sys/files.h no longer needs _KERNEL defined to include it (bsdimp #256) docs: Describe fd number truncation in output (#261)"><pre class="notranslate"><code> [FreeBSD] sys/files.h no longer needs _KERNEL defined to include it (bsdimp #256) docs: Describe fd number truncation in output (#261) </code></pre></div> lrosenman