@nwalfield commented on this pull request.


> @@ -235,23 +235,26 @@ static int runGPG(sigTarget sigt, const char *sigfile)
     }
 
     if (!(pid = fork())) {
-       const char *tty = ttyname(STDIN_FILENO);
-       const char *gpg_path = NULL;
+       int using_gpg = (strstr(argv[0], "gpg") != NULL);

This is a pretty lightweight check, but perhaps it is enough.  A more robust 
check might be greping the output of:

```
$ gpg --version
gpg (GnuPG-compatible Sequoia Chameleon) 2.2.40
Sequoia gpg Chameleon 0.11.0
sequoia-openpgp 1.21.2
...
$ /usr/bin/gpg --version
gpg (GnuPG) 2.2.40
libgcrypt 1.10.1
Copyright (C) 2022 g10 Code GmbH
...
```

Or:

```
$ gpg --list-config --with-colons version
cfg:version:2.2.40
```

-- 
Reply to this email directly or view it on GitHub:
https://github.com/rpm-software-management/rpm/pull/3280#pullrequestreview-2282271789
You are receiving this because you are subscribed to this thread.

Message ID: <rpm-software-management/rpm/pull/3280/review/2282271...@github.com>
_______________________________________________
Rpm-maint mailing list
Rpm-maint@lists.rpm.org
http://lists.rpm.org/mailman/listinfo/rpm-maint

Reply via email to