Script 'mail_helper' called by obssrc Hello community, here is the log from the commit of package libcdio for openSUSE:Factory checked in at 2022-08-25 15:33:06 ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ Comparing /work/SRC/openSUSE:Factory/libcdio (Old) and /work/SRC/openSUSE:Factory/.libcdio.new.2083 (New) ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Package is "libcdio" Thu Aug 25 15:33:06 2022 rev:47 rq:998975 version:2.1.0 Changes: -------- --- /work/SRC/openSUSE:Factory/libcdio/libcdio.changes 2021-10-20 20:24:28.957385421 +0200 +++ /work/SRC/openSUSE:Factory/.libcdio.new.2083/libcdio.changes 2022-08-25 15:33:08.195929669 +0200 @@ -1,0 +2,5 @@ +Mon Aug 22 04:18:33 UTC 2022 - Martin Li??ka <mli...@suse.cz> + +- Add fix-undefined-behavior-in-readlink.patch that fixes boo#1202214. + +------------------------------------------------------------------- New: ---- fix-undefined-behavior-in-readlink.patch ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ Other differences: ------------------ ++++++ cdio-utils.spec ++++++ --- /var/tmp/diff_new_pack.CdgeLx/_old 2022-08-25 15:33:08.775930935 +0200 +++ /var/tmp/diff_new_pack.CdgeLx/_new 2022-08-25 15:33:08.787930962 +0200 @@ -1,7 +1,7 @@ # # spec file for package cdio-utils # -# Copyright (c) 2021 SUSE LLC +# Copyright (c) 2022 SUSE LLC # # All modifications and additions to the file contributed by third parties # remain the property of their copyright owners, unless otherwise agreed ++++++ libcdio.spec ++++++ --- /var/tmp/diff_new_pack.CdgeLx/_old 2022-08-25 15:33:08.807931006 +0200 +++ /var/tmp/diff_new_pack.CdgeLx/_new 2022-08-25 15:33:08.815931023 +0200 @@ -1,7 +1,7 @@ # # spec file for package libcdio # -# Copyright (c) 2021 SUSE LLC +# Copyright (c) 2022 SUSE LLC # # All modifications and additions to the file contributed by third parties # remain the property of their copyright owners, unless otherwise agreed @@ -32,6 +32,7 @@ Source1: https://ftp.gnu.org/gnu/libcdio/%{name}-%{version}.tar.bz2.sig Source2: %{name}.keyring Source3: baselibs.conf +Patch0: fix-undefined-behavior-in-readlink.patch BuildRequires: fdupes BuildRequires: gcc-c++ BuildRequires: help2man @@ -117,6 +118,7 @@ %prep %setup -q +%patch0 -p1 %build %configure \ ++++++ fix-undefined-behavior-in-readlink.patch ++++++ diff --git a/test/driver/realpath.c b/test/driver/realpath.c index 289253e4..4e85af96 100644 --- a/test/driver/realpath.c +++ b/test/driver/realpath.c @@ -175,14 +175,16 @@ main(int argc, const char *argv[]) rc = check_rc(symlink(psz_symlink_file, psz_symlink_file), "symlink", psz_symlink_file); if (0 == rc) { - cdio_realpath(psz_symlink_file, psz_file_check); - if (0 != strncmp(psz_file_check, symlink_file, PATH_MAX)) { - fprintf(stderr, "direct cdio_realpath cycle test failed. %s vs %s\n", - psz_file_check, symlink_file); - rc = 5; - goto err_exit; + char *retvalue = cdio_realpath(psz_symlink_file, psz_file_check); + if (0 != retvalue) { + if (0 != strncmp(psz_file_check, symlink_file, PATH_MAX)) { + fprintf(stderr, "direct cdio_realpath cycle test failed. %s vs %s\n", + psz_file_check, symlink_file); + rc = 5; + goto err_exit; + } + check_rc(unlink(psz_symlink_file), "unlink", psz_symlink_file); } - check_rc(unlink(psz_symlink_file), "unlink", psz_symlink_file); } }