Skip to contentSkip to conversation

policycoreutils/semanage/seobject.py:setransRecords: improper string subst

PATCH Applied Caleb Case 2 participants 2 messages Feb 6, 2007 – Feb 20, 2007 SELinux security module

lore
Share & tools
lore

Caleb Case

author
#0 lore raw

A small fix for the wrong number of arguments for python string substitution.

---
 policycoreutils/semanage/seobject.py |    2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
policycoreutils/semanage/seobject.py +1 -1
Index: selinux-pms-support/policycoreutils/semanage/seobject.py
===================================================================
@@ -139,7 +139,7 @@ class setransRecords:
 			translations = fd.readlines()
 			fd.close()
 		except IOError, e:
-			raise ValueError(_("Unable to open %s: translations not supported on non-MLS machines") % (self.filename, e) )			
+			raise ValueError(_("Unable to open %s: translations not supported on non-MLS machines") % (self.filename) )
 			
 		self.ddict = {}
 		self.comments = []
Signature · 9 lines
Caleb Case
Tresys Technology
410.290.1411 x144


--
This message was distributed to subscribers of the selinux mailing list.
If you no longer wish to subscribe, send mail to [email protected] with
the words "unsubscribe selinux" without quotes as the message.
#1 lore raw
Quoted 10 lines · Caleb Case

A small fix for the wrong number of arguments for python string substitution.

---
 policycoreutils/semanage/seobject.py |    2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

Index: selinux-pms-support/policycoreutils/semanage/seobject.py
===================================================================

policycoreutils/semanage/seobject.py class setransRecords: · line 145

Quoted 8 lines
policycoreutils/semanage/seobject.py +1 -1
@@ -139,7 +139,7 @@ class setransRecords:
 			translations = fd.readlines()
 			fd.close()
 		except IOError, e:
-			raise ValueError(_("Unable to open %s: translations not supported on non-MLS machines") % (self.filename, e) )			
+			raise ValueError(_("Unable to open %s: translations not supported on non-MLS machines") % (self.filename) )
 
 		self.ddict = {}
 		self.comments = []

Merged to -stable and -trunk.

Signature · 8 lines
Stephen Smalley
National Security Agency


--
This message was distributed to subscribers of the selinux mailing list.
If you no longer wish to subscribe, send mail to [email protected] with
the words "unsubscribe selinux" without quotes as the message.