Don't show the running Linux kernel version in the commit message, since it
authorZac Medico <zmedico@gentoo.org>
Wed, 14 Jan 2009 20:32:38 +0000 (20:32 -0000)
committerZac Medico <zmedico@gentoo.org>
Wed, 14 Jan 2009 20:32:38 +0000 (20:32 -0000)
might leak information that would be useful to attackers. Thanks to Ned Ludd
<solar@g.o> for the suggestion.

svn path=/main/trunk/; revision=12518

bin/repoman

index 1d6ef75d461bd0c4787a3bb199f053651eba5380..68c77b86e768af9ea17761915cc05adbf69b979c 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: