Script 'mail_helper' called by obssrc Hello community, here is the log from the commit of package fatrace for openSUSE:Factory checked in at 2021-12-23 17:53:54 ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ Comparing /work/SRC/openSUSE:Factory/fatrace (Old) and /work/SRC/openSUSE:Factory/.fatrace.new.2520 (New) ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Package is "fatrace" Thu Dec 23 17:53:54 2021 rev:9 rq:942241 version:0.16.3 Changes: -------- --- /work/SRC/openSUSE:Factory/fatrace/fatrace.changes 2021-05-12 19:33:33.266720698 +0200 +++ /work/SRC/openSUSE:Factory/.fatrace.new.2520/fatrace.changes 2021-12-23 17:54:16.267738465 +0100 @@ -1,0 +2,7 @@ +Mon Dec 20 22:02:30 UTC 2021 - Dirk M??ller <dmuel...@suse.com> + +- update to 0.16.3: + * Always use line buffering + * Fix fd leak with `-f` event type filtering. + +------------------------------------------------------------------- Old: ---- fatrace-0.16.2.tar.gz New: ---- fatrace-0.16.3.tar.gz ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ Other differences: ------------------ ++++++ fatrace.spec ++++++ --- /var/tmp/diff_new_pack.h3aapC/_old 2021-12-23 17:54:16.647738696 +0100 +++ /var/tmp/diff_new_pack.h3aapC/_new 2021-12-23 17:54:16.655738701 +0100 @@ -16,16 +16,16 @@ # Please submit bugfixes or comments via https://bugs.opensuse.org/ # -# Tests require root access + %bcond_with tests Name: fatrace -Version: 0.16.2 +Version: 0.16.3 Release: 0 Summary: System wide file access event reporting utility License: GPL-3.0-or-later Group: System/Monitoring URL: https://github.com/martinpitt/fatrace -Source: %{URL}/archive/refs/tags/%{version}.tar.gz#/%{name}-%{version}.tar.gz +Source: https://github.com/martinpitt/fatrace/archive/refs/tags/%{version}.tar.gz#/%{name}-%{version}.tar.gz BuildRequires: glibc-devel %description ++++++ fatrace-0.16.2.tar.gz -> fatrace-0.16.3.tar.gz ++++++ diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/fatrace-0.16.2/.github/workflows/tests.yml new/fatrace-0.16.3/.github/workflows/tests.yml --- old/fatrace-0.16.2/.github/workflows/tests.yml 2021-03-12 18:36:19.000000000 +0100 +++ new/fatrace-0.16.3/.github/workflows/tests.yml 2021-05-15 21:52:17.000000000 +0200 @@ -53,9 +53,3 @@ export AUTOPKGTEST_TMP=$(mktemp -d) export PATH=$(pwd):$PATH tests/fatrace-currentmount - - - name: Run btrfs tests - run: | - export AUTOPKGTEST_TMP=$(mktemp -d) - export PATH=$(pwd):$PATH - tests/fatrace-btrfs diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/fatrace-0.16.2/NEWS new/fatrace-0.16.3/NEWS --- old/fatrace-0.16.2/NEWS 2021-03-12 18:36:19.000000000 +0100 +++ new/fatrace-0.16.3/NEWS 2021-05-15 21:52:17.000000000 +0200 @@ -1,3 +1,8 @@ +## [0.16.3] - 2021-05-15 + - Always use line buffering + - Fix fd leak with `-f` event type filtering. Thanks Stefan Dotterweich! + (#8, LP: #1858305) + ## [0.16.2] - 2021-03-12 - Use line buffering with --output to get live logs (#6) - Make open_by_handle_at() failures non-fatal (#2) diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/fatrace-0.16.2/fatrace.c new/fatrace-0.16.3/fatrace.c --- old/fatrace-0.16.2/fatrace.c 2021-03-12 18:36:19.000000000 +0100 +++ new/fatrace-0.16.3/fatrace.c 2021-05-15 21:52:17.000000000 +0200 @@ -235,8 +235,11 @@ bool got_procname = false; struct stat st; - if ((data->mask & option_filter_mask) == 0 || !show_pid (data->pid)) + if ((data->mask & option_filter_mask) == 0 || !show_pid (data->pid)) { + if (event_fd >= 0) + close (event_fd); return; + } /* read process name */ snprintf (printbuf, sizeof (printbuf), "/proc/%i/comm", data->pid); @@ -592,10 +595,12 @@ err (EXIT_FAILURE, "Failed to open output file"); fflush (stdout); dup2 (fd, STDOUT_FILENO); - setlinebuf (stdout); close (fd); } + /* useful for live tailing and multiple writers */ + setlinebuf (stdout); + /* setup signal handler to cleanly stop the program */ sa.sa_handler = signal_handler; sigemptyset (&sa.sa_mask);