From 06921f50a056e381ee937a61b1fbc6a7ed44eb3c Mon Sep 17 00:00:00 2001 From: Roman Rakus Date: Nov 24 2011 18:44:00 +0000 Subject: Add missing f:close() in postun Signed-off-by: Roman Rakus --- diff --git a/bash.spec b/bash.spec index e57eac8..920383e 100644 --- a/bash.spec +++ b/bash.spec @@ -6,7 +6,7 @@ Version: %{baseversion}%{patchleveltag} Name: bash Summary: The GNU Bourne Again shell -Release: 5%{?dist} +Release: 6%{?dist} Group: System Environment/Shells License: GPLv3+ Url: http://www.gnu.org/software/bash @@ -250,7 +250,7 @@ rm -rf $RPM_BUILD_ROOT %post -p bashfound = false; shfound = false; - + f = io.open("/etc/shells", "r"); if f == nil then @@ -269,7 +269,7 @@ else until t == nil; end f:close() - + f = io.open("/etc/shells", "a"); if not bashfound then @@ -299,6 +299,7 @@ then do f:write(line.."\n") end + f:close() end %files -f %{name}.lang @@ -320,6 +321,9 @@ end #%doc doc/*.ps doc/*.0 doc/*.html doc/article.txt %changelog +* Thu Nov 24 2011 Roman Rakus - 4.2.10-6 +- Add missing f:close() in postun + * Thu Nov 10 2011 Roman Rakus - 4.2.10-5 - erase /bin/bash and /bin/sh in postun only if we are uninstalling (#752827)