Don't show the running Linux kernel version in the commit message, since it
authorZac Medico <zmedico@gentoo.org>
Sun, 18 Jan 2009 23:42:03 +0000 (23:42 -0000)
committerZac Medico <zmedico@gentoo.org>
Sun, 18 Jan 2009 23:42:03 +0000 (23:42 -0000)
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

bin/repoman

index c285bd6debbb567c306c0895c848d691aa829b28..6e31ee1eb82a8d1904b95a5ac2cb2e37b2a390d8 100755 (executable)
@@ -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: