From 7d4ff74e352cc21acc6d348431b262d0673d5b0c Mon Sep 17 00:00:00 2001 From: Matthias Fischer Date: Sun, 5 Feb 2023 12:27:06 +0100 Subject: [PATCH] lsof: Update to 4.98.0 For details see: https://github.com/lsof-org/lsof/blob/master/00DIST#L5471 "4.98.0 January 22, 2023 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" Signed-off-by: Matthias Fischer Reviewed-by: Adolf Belka --- lfs/lsof | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/lfs/lsof b/lfs/lsof index eefaf35f5e..2c654dd5b0 100644 --- a/lfs/lsof +++ b/lfs/lsof @@ -1,7 +1,7 @@ ############################################################################### # # # IPFire.org - A linux based firewall # -# Copyright (C) 2007-2018 IPFire Team # +# Copyright (C) 2007-2023 IPFire Team # # # # This program is free software: you can redistribute it and/or modify # # it under the terms of the GNU General Public License as published by # @@ -24,10 +24,10 @@ include Config -VER = 4.95.0.linux +VER = 4.98.0 -THISAPP = lsof_$(VER) -DL_FILE = $(THISAPP).tar.bz2 +THISAPP = lsof-$(VER) +DL_FILE = $(THISAPP).tar.gz DL_FROM = $(URL_IPFIRE) DIR_APP = $(DIR_SRC)/$(THISAPP) TARGET = $(DIR_INFO)/$(THISAPP) @@ -40,7 +40,7 @@ objects = $(DL_FILE) $(DL_FILE) = $(DL_FROM)/$(DL_FILE) -$(DL_FILE)_BLAKE2 = 6a7d6353ec7f0f1e14416bff98867e64009c3f3901110c947f845bb3dcf9af3d40755c7ac6d586412a61778bc8ac355d2388cf2cfa8a975dbf4870c339c75a8c +$(DL_FILE)_BLAKE2 = 7ce5576653035bced042b07a946a09cb3c23da57a4f77a9f7bc8b8f86d531d73f0375a03fb0dc9e03f6ac18caa68bbb45144d6da13cee7ba94dfbb913fae9d03 install : $(TARGET) @@ -69,7 +69,7 @@ $(subst %,%_BLAKE2,$(objects)) : $(TARGET) : $(patsubst %,$(DIR_DL)/%,$(objects)) @$(PREBUILD) - @rm -rf $(DIR_APP) && cd $(DIR_SRC) && tar axf $(DIR_DL)/$(DL_FILE) + @rm -rf $(DIR_APP) && cd $(DIR_SRC) && tar xzf $(DIR_DL)/$(DL_FILE) cd $(DIR_APP) && ./Configure linux cd $(DIR_APP) && make $(MAKETUNING) CC="cc $(CFLAGS) $(LDFLAGS)" cd $(DIR_APP) && install -m 755 -o root -g root lsof /usr/bin -- 2.39.5