[packages/abrt] profile script: do not leak vars, do not run if not interactive
glen
glen at pld-linux.org
Mon May 5 08:15:57 CEST 2014
commit 4af98f740b189ad4d93221703dc082d14e4df0ce
Author: Elan Ruusamäe <glen at delfi.ee>
Date: Mon May 5 09:14:58 2014 +0300
profile script: do not leak vars, do not run if not interactive
abrt.spec | 4 +++-
profile.sh.patch | 15 +++++++++++++++
2 files changed, 18 insertions(+), 1 deletion(-)
---
diff --git a/abrt.spec b/abrt.spec
index 00213d4..ff40aaa 100644
--- a/abrt.spec
+++ b/abrt.spec
@@ -8,7 +8,7 @@ Summary: Automatic bug detection and reporting tool
Summary(pl.UTF-8): Narzędzie do automatycznego wykrywania i zgłaszania błędów
Name: abrt
Version: 2.2.0
-Release: 1
+Release: 2
License: GPL v2+
Group: Applications/System
Source0: https://fedorahosted.org/released/abrt/%{name}-%{version}.tar.gz
@@ -19,6 +19,7 @@ Patch1: %{name}-rpm45.patch
Patch2: format_security.patch
Patch3: %{name}-link.patch
Patch4: %{name}-po.patch
+Patch5: profile.sh.patch
URL: https://fedorahosted.org/abrt/
BuildRequires: asciidoc
BuildRequires: autoconf >= 2.50
@@ -441,6 +442,7 @@ się do powłoki.
%patch2 -p1
%patch3 -p1
%patch4 -p1
+%patch5 -p1
%build
%{__libtoolize}
diff --git a/profile.sh.patch b/profile.sh.patch
new file mode 100644
index 0000000..42bb5ea
--- /dev/null
+++ b/profile.sh.patch
@@ -0,0 +1,15 @@
+--- abrt-2.2.0/src/cli/abrt-console-notification.sh~ 2013-09-13 15:23:35.000000000 +0300
++++ abrt-2.2.0/src/cli/abrt-console-notification.sh 2014-05-05 09:13:58.060354676 +0300
+@@ -1,3 +1,6 @@
++# Not an interactive shell?
++[[ $- == *i* ]] || return 0
++
+ LPATHDIR="$HOME/.cache/abrt"
+ SINCEFILE="$LPATHDIR/lastnotification"
+
+@@ -19,3 +22,5 @@
+ fi
+
+ abrt-cli status --since="$SINCE" 2> /dev/null
++
++unset LPATHDIR SINCEFILE TMPPATH
================================================================
---- gitweb:
http://git.pld-linux.org/gitweb.cgi/packages/abrt.git/commitdiff/4af98f740b189ad4d93221703dc082d14e4df0ce
More information about the pld-cvs-commit
mailing list