[Pgp-tools-commit] r653 - trunk/keyart

Aaron Toponce atoponce-guest at moszumanska.debian.org
Wed Jun 18 13:57:31 UTC 2014


Author: atoponce-guest
Date: 2014-06-18 13:57:31 +0000 (Wed, 18 Jun 2014)
New Revision: 653

Modified:
   trunk/keyart/keyart
Log:
keyring/keyfile should be an absolute path to prevent the user from typing it at the cli

Modified: trunk/keyart/keyart
===================================================================
--- trunk/keyart/keyart	2014-06-18 13:39:27 UTC (rev 652)
+++ trunk/keyart/keyart	2014-06-18 13:57:31 UTC (rev 653)
@@ -236,7 +236,8 @@
     cmd = [ gpg_bin, '--with-colons', '--fingerprint' ]
     if ARGS.file:
         cmd.append('--no-default-keyring')
-        cmd.extend([ '--keyring=%s' % keyring for keyring in ARGS.file ])
+        cmd.extend([ '--keyring=%s' % os.path.abspath(keyring) for keyring in
+                   ARGS.file ])
 
     if ARGS.keyid:
         cmd.append('--')




More information about the Pgp-tools-commit mailing list