[bash/f16] Add missing f:close() in postun
Roman Rakus
rrakus at fedoraproject.org
Thu Nov 24 18:59:37 UTC 2011
commit 06921f50a056e381ee937a61b1fbc6a7ed44eb3c
Author: Roman Rakus <rrakus at redhat.com>
Date: Thu Nov 24 19:44:00 2011 +0100
Add missing f:close() in postun
Signed-off-by: Roman Rakus <rrakus at redhat.com>
bash.spec | 10 +++++++---
1 files changed, 7 insertions(+), 3 deletions(-)
---
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 <lua>
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 <rrakus at redhat.com> - 4.2.10-6
+- Add missing f:close() in postun
+
* Thu Nov 10 2011 Roman Rakus <rrakus at redhat.com> - 4.2.10-5
- erase /bin/bash and /bin/sh in postun only if we are uninstalling (#752827)
More information about the scm-commits
mailing list