diff options
Diffstat (limited to 'net-p2p/bittorrent/files/bittorrent-4.4.0-pkidir.patch')
-rw-r--r-- | net-p2p/bittorrent/files/bittorrent-4.4.0-pkidir.patch | 13 |
1 files changed, 13 insertions, 0 deletions
diff --git a/net-p2p/bittorrent/files/bittorrent-4.4.0-pkidir.patch b/net-p2p/bittorrent/files/bittorrent-4.4.0-pkidir.patch new file mode 100644 index 000000000000..98f9f81c177f --- /dev/null +++ b/net-p2p/bittorrent/files/bittorrent-4.4.0-pkidir.patch @@ -0,0 +1,13 @@ +Install public key in standard place. + +--- a/BitTorrent/NewVersion.py ++++ b/BitTorrent/NewVersion.py +@@ -163,7 +163,7 @@ class Updater(object): + self.threadwrap(self.errorfunc, WARNING, '\n'.join(terrors)) + + if torrentfile and signature: +- public_key_file = open(os.path.join(doc_root, 'public.key'), 'rb') ++ public_key_file = open('/etc/pki/bittorrent/public.key', 'rb') + public_key = pickle.load(public_key_file) + h = sha(torrentfile).digest() + if public_key.verify(h, signature): |