Compare commits

...

No commits in common. 'c9' and 'c9-beta' have entirely different histories.
c9 ... c9-beta

@ -0,0 +1,21 @@
diff -up usermode-1.114/gsmclient.c.fix_sast usermode-1.114/gsmclient.c
--- usermode-1.114/gsmclient.c.fix_sast 2024-08-06 17:42:30.778556066 +0200
+++ usermode-1.114/gsmclient.c 2024-08-06 17:42:30.847556790 +0200
@@ -182,6 +182,7 @@ gsm_client_init (GsmClient *client, gpoi
char pid_str[64];
int empty_vector_len = 0;
char *empty_vector[] = { NULL };
+ gchar *gchptr;
(void)data;
client->priv = g_new (GsmClientPrivate, 1);
@@ -198,7 +199,8 @@ gsm_client_init (GsmClient *client, gpoi
* with an empty proplist)
*/
push_prop (client, smprop_new_string (GSM_CLIENT_PROPERTY_CURRENT_DIRECTORY,
- g_get_current_dir (), -1));
+ (gchptr=g_get_current_dir ()), -1));
+ g_free(gchptr);
g_snprintf (pid_str, sizeof (pid_str), "%d", (int) getpid ());
push_prop (client, smprop_new_string (GSM_CLIENT_PROPERTY_PROCESS_ID,

@ -4,11 +4,12 @@
Summary: Tools for certain user account management tasks Summary: Tools for certain user account management tasks
Name: usermode Name: usermode
Version: 1.114 Version: 1.114
Release: 4%{?dist} Release: 5%{?dist}
License: GPLv2+ License: GPLv2+
URL: https://pagure.io/%{name}/ URL: https://pagure.io/%{name}/
Source: https://releases.pagure.org/%{name}/%{name}-%{version}.tar.xz Source: https://releases.pagure.org/%{name}/%{name}-%{version}.tar.xz
Source1: config-util Source1: config-util
Patch1: usermode-1.114-fix_sast.patch
Requires: pam, passwd, util-linux Requires: pam, passwd, util-linux
# https://lists.fedoraproject.org/archives/list/devel@lists.fedoraproject.org/thread/IJFYI5Q2BYZKIGDFS2WLOBDUSEGWHIKV/ # https://lists.fedoraproject.org/archives/list/devel@lists.fedoraproject.org/thread/IJFYI5Q2BYZKIGDFS2WLOBDUSEGWHIKV/
BuildRequires: make BuildRequires: make
@ -48,6 +49,7 @@ graphical tools for certain account management tasks.
%prep %prep
%setup -q %setup -q
%patch -P 1 -p1 -b .fix_sast
%build %build
%configure --with-selinux --without-fexecve %{!?with_gtk:--without-gtk} %configure --with-selinux --without-fexecve %{!?with_gtk:--without-gtk}
@ -108,6 +110,9 @@ done
%endif %endif
%changelog %changelog
* Tue Aug 06 2024 Michal Hlavinka <mhlavink@redhat.com> - 1.114-5
- fix static analysis findings (RHEL-27043)
* Thu Dec 09 2021 Jiri Kucera <jkucera@redhat.com> - 1.114-4 * Thu Dec 09 2021 Jiri Kucera <jkucera@redhat.com> - 1.114-4
- Rebuild with new annobin - Rebuild with new annobin
Related: #1984417 Related: #1984417

Loading…
Cancel
Save