import CS libuser-0.63-15.el9

This commit is contained in:
eabdullin 2024-09-30 15:57:23 +00:00
parent 9ecc6ae5a7
commit 3e7268b973
3 changed files with 2674 additions and 1 deletions

View File

@ -0,0 +1,53 @@
commit 009d9238317d152f524ee46c4be1ad2f93c47732
Author: Jakub Hrozek <jakub.hrozek@posteo.se>
Date: Wed Sep 26 21:29:35 2018 +0200
lu_dispatch: Free tmp on failures
Merges:
https://pagure.io/libuser/issue/23
This makes the code slightly less compact with using an explicit
condition instead of the g_return_val_if_fail() shorthand, but freeing
tmp on failures.
diff --git a/lib/user.c b/lib/user.c
index ad2bb09..5709f41 100644
--- a/lib/user.c
+++ b/lib/user.c
@@ -980,7 +980,10 @@ lu_dispatch(struct lu_context *context,
case user_default:
case group_default:
/* Make sure we have both name and boolean here. */
- g_return_val_if_fail(sdata != NULL, FALSE);
+ if (sdata == NULL) {
+ free(tmp);
+ return FALSE;
+ }
/* Run the checks and preps. */
if (run_list(context, context->create_module_names,
logic_and, id,
@@ -1059,7 +1062,10 @@ lu_dispatch(struct lu_context *context,
case user_setpass:
case group_setpass:
/* Make sure we have a valid password. */
- g_return_val_if_fail(sdata != NULL, FALSE);
+ if (sdata == NULL) {
+ free(tmp);
+ return FALSE;
+ }
/* no break: fall through */
case user_removepass:
case group_removepass:
@@ -1088,7 +1094,10 @@ lu_dispatch(struct lu_context *context,
case users_enumerate_by_group:
case groups_enumerate_by_user:
/* Make sure we have both name and ID here. */
- g_return_val_if_fail(sdata != NULL, FALSE);
+ if (sdata == NULL) {
+ free(tmp);
+ return FALSE;
+ }
if (id == users_enumerate_by_group)
ldata = convert_group_name_to_id(context, sdata,
error);

File diff suppressed because it is too large Load Diff

View File

@ -1,12 +1,14 @@
Name: libuser Name: libuser
Version: 0.63 Version: 0.63
Release: 13%{?dist} Release: 15%{?dist}
License: LGPLv2+ License: LGPLv2+
URL: https://pagure.io/libuser URL: https://pagure.io/libuser
Source: http://releases.pagure.org/libuser/libuser-%{version}.tar.xz Source: http://releases.pagure.org/libuser/libuser-%{version}.tar.xz
Patch0001: 0001-man-typo.patch Patch0001: 0001-man-typo.patch
Patch0002: 0002-popt-memopy.patch Patch0002: 0002-popt-memopy.patch
Patch0003: 0003-translation.patch Patch0003: 0003-translation.patch
Patch0004: 0004-resource-leak.patch
Patch0005: 0005-translation-update.patch
BuildRequires: glib2-devel BuildRequires: glib2-devel
BuildRequires: linuxdoc-tools BuildRequires: linuxdoc-tools
@ -121,6 +123,14 @@ make
%{_datadir}/gtk-doc/html/* %{_datadir}/gtk-doc/html/*
%changelog %changelog
* Tue May 7 2024 Tomas Halman <thalman@redhat.com> - 0.63-15
- Update translations
Resolves: RHEL-12110
* Mon May 6 2024 Tomas Halman <thalman@redhat.com> - 0.63-14
- Fix findings from static application security testing
Resolves: RHEL-35693
* Tue Jul 11 2023 Tomas Halman <thalman@redhat.com> - 0.63-13 * Tue Jul 11 2023 Tomas Halman <thalman@redhat.com> - 0.63-13
- Translation update - Translation update
Resolves: rhbz#2139662 Resolves: rhbz#2139662