Changeset 589


Ignore:
Timestamp:
Oct 26, 2025, 12:25:51 PM (9 hours ago)
Author:
katerina
Message:

Fix for ticket #477 (obsolete gpg option --secret-keyring).

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/scripts/samhainadmin-gpg.pl.in

    r550 r589  
    156156    print "    Set the passphrase for gpg. By default, gpg will ask.\n\n";
    157157
    158     print "  -s gnupg_homedir --secretkeyring gnupg_homedir\n";
    159     print "    Select an alternate gpg homedirectory to locate the secret keyring.\n";
    160     print "    Will use '$ENV{'HOME'}/.gnupg/' by default.\n\n";
    161 
    162158    print "  -k keyid      --keyid keyid\n";
    163159    print "   Select the keyid to use for signing.\n\n";
     
    528524        local $SIG{PIPE} = 'IGNORE';
    529525        my $command = "$gpg --homedir $ENV{'HOME'}/.gnupg --passphrase-fd 0 -a ${KEYTAG} ${TARGETKEYID} --clearsign -o $fileout --not-dash-escaped ";
    530         $command .= "--secret-keyring $secretkeyring " if (defined($opts{'s'}));
    531526        $command .= "$file1";
    532527        open (FH, "|$command")  or die "can't fork: $!";
     
    535530    } else {
    536531        my $command = "$gpg --homedir $ENV{'HOME'}/.gnupg                   -a ${KEYTAG} ${TARGETKEYID} --clearsign -o $fileout --not-dash-escaped ";
    537         $command .= "--secret-keyring $secretkeyring " if (defined($opts{'s'}));
    538532        $command .= "$file1";
    539533        system("$command") == 0
     
    572566            'd|datafile=s',
    573567            'p|passphrase=s',
    574             's|secretkeyring=s',
    575568            'k|keyid=s',
    576569            'create-cfgfile',  # -m F
Note: See TracChangeset for help on using the changeset viewer.