summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorZac Medico <zmedico@gentoo.org>2009-01-18 23:42:03 +0000
committerZac Medico <zmedico@gentoo.org>2009-01-18 23:42:03 +0000
commit22adcea04d0b8dcb11c75e28577fc162c913db6a (patch)
treedce41437d6dcdf9c05ff0fb33c58dcdd386bcc72
parentFix repoman conditionals inside _expand_new_virtuals() to use (diff)
downloadportage-multirepo-22adcea04d0b8dcb11c75e28577fc162c913db6a.tar.gz
portage-multirepo-22adcea04d0b8dcb11c75e28577fc162c913db6a.tar.bz2
portage-multirepo-22adcea04d0b8dcb11c75e28577fc162c913db6a.zip
Don't show the running Linux kernel version in the commit message, since it
might leak information that would be useful to attackers. Thanks to Ned Ludd <solar@g.o> for the suggestion. (trunk r12518) svn path=/main/branches/2.1.6/; revision=12530
-rwxr-xr-xbin/repoman4
1 files changed, 3 insertions, 1 deletions
diff --git a/bin/repoman b/bin/repoman
index c285bd6d..6e31ee1e 100755
--- a/bin/repoman
+++ b/bin/repoman
@@ -1894,7 +1894,9 @@ else:
sys.stderr.write("Failed to insert portage version in message!\n")
sys.stderr.flush()
portage_version = "Unknown"
- unameout = platform.system() + " " + platform.release() + " "
+ unameout = platform.system() + " "
+ if platform.system() != "Linux":
+ unameout += platform.release() + " "
if platform.system() in ["Darwin", "SunOS"]:
unameout += platform.processor()
else: