Do not use fexecve

Script executed via fexecve has a file descriptor number in
argv[0]. This results in unexpected output: when displaying
the script help, a user see "Usage: <number> [options]"
instead of "Usage: <scriptname> [options]".

Resolves: #1969918
This commit is contained in:
Jiri Kucera 2021-06-16 21:09:51 +02:00
parent 76346b911b
commit fc3e4de1fb

View File

@ -4,7 +4,7 @@
Summary: Tools for certain user account management tasks
Name: usermode
Version: 1.114
Release: 1%{?dist}
Release: 2%{?dist}
License: GPLv2+
URL: https://pagure.io/%{name}/
Source: https://releases.pagure.org/%{name}/%{name}-%{version}.tar.xz
@ -50,7 +50,7 @@ graphical tools for certain account management tasks.
%setup -q
%build
%configure --with-selinux %{!?with_gtk:--without-gtk}
%configure --with-selinux --without-fexecve %{!?with_gtk:--without-gtk}
%make_build
@ -108,6 +108,14 @@ done
%endif
%changelog
* Wed Jun 16 2021 Jiri Kucera <jkucera@redhat.com> - 1.114-2
- Do not use fexecve
Script executed via fexecve has a file descriptor number in
argv[0]. This results in unexpected output: when displaying
the script help, a user see "Usage: <number> [options]"
instead of "Usage: <scriptname> [options]".
Resolves: #1969918
* Tue May 04 2021 Jiri Kucera <jkucera@redhat.com> - 1.114-1
- Update to usermode-1.114
- Allow to optionally disable GTK