mirror of
https://github.com/webmin/webmin.git
synced 2026-03-29 21:40:25 +01:00
Fix to use loopback pinentry for GPG decryption
https://forum.virtualmin.com/t/gpg-encryption-in-usermin/136729/19?u=ilia
This commit is contained in:
@@ -206,7 +206,8 @@ if ($key) {
|
||||
$pflag = "--batch --passphrase-file ".
|
||||
quotemeta(&get_passphrase_file($key));
|
||||
}
|
||||
my $cmd = "$gpgpath $pflag --output ".quotemeta($dstfile).
|
||||
my $cmd = "$gpgpath --pinentry-mode loopback $pflag".
|
||||
" --output ".quotemeta($dstfile).
|
||||
" --decrypt ".quotemeta($srcfile);
|
||||
my ($fh, $fpid) = &proc::pty_process_exec($cmd);
|
||||
my ($error, $seen_pass, $keyid);
|
||||
|
||||
Reference in New Issue
Block a user