From: Alexandre Duret-Lutz Date: Wed, 28 Jan 2004 16:18:21 +0000 (+0000) Subject: * lib/gnupload (GPG): Use an absolute path. Suggestion from Gary X-Git-Tag: Release-1-8b~72 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=5176801c82cc0ea98b344260b4accf4cab08a0e3;p=thirdparty%2Fautomake.git * lib/gnupload (GPG): Use an absolute path. Suggestion from Gary V. Vaughan. (passphrase): Unset it this variable before using it, in case it was exported. Report from Scott James Remnant. --- diff --git a/ChangeLog b/ChangeLog index d4518432c..d5355a46f 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,10 @@ +2004-01-28 Alexandre Duret-Lutz + + * lib/gnupload (GPG): Use an absolute path. Suggestion from Gary + V. Vaughan. + (passphrase): Unset it this variable before using it, in case it + was exported. Report from Scott James Remnant. + 2004-01-25 Alexandre Duret-Lutz * lib/gnupload (usage): Fix example. diff --git a/lib/gnupload b/lib/gnupload index f5efeb786..d0e2f5375 100755 --- a/lib/gnupload +++ b/lib/gnupload @@ -1,7 +1,7 @@ #!/bin/sh # Sign files and upload them. -scriptversion=2004-01-25.02 +scriptversion=2004-01-28.17 # Copyright (C) 2004 Free Software Foundation # @@ -24,7 +24,7 @@ scriptversion=2004-01-25.02 set -e -GPG='gpg --batch --no-tty' +GPG='/usr/bin/gpg --batch --no-tty' to= usage="Usage: $0 [OPTIONS]... FILES... @@ -108,10 +108,15 @@ do fi done +# Make sure passphrase is not exported in the environment. +unset passphrase + # Reset PATH to be sure that echo is a built-in. We will later use # `echo $passphrase' to output the passphrase, so it is important that # it is a built-in (third-party programs tend to appear in `ps' # listings with their arguments...). +# Remember this script runs with `set -e', so if echo is not built-in +# it will exit now. PATH=/empty echo -n "Enter GPG passphrase: " stty -echo read -r passphrase