Source-Changes-D archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
Re: CVS commit: [agc-netpgp-standalone] src/crypto/external/bsd/netpgp/dist/src
On Fri, Oct 26, 2012 at 05:03:24AM +0200, Alistair Crooks wrote:
>
> /* set up the pubkey keyring */
> int
> pgpv_read_pubring(pgpv_t *pgp, const void *keyring, ssize_t size)
> {
> if (keyring) {
> return (size > 0) ?
> read_binary_memory(pgp, "pubring", keyring,
> (size_t)size) :
> read_binary_file(pgp, "pubring", "%s", keyring);
> }
> return read_binary_file(pgp, "pubring", "%s/%s", getenv("HOME"),
> ".gnupg/pubring.gpg");
> }
What happens if $HOME is undefined ?
What happens if $HOME is very long ?
Why did someone use ?: not if ?
David
--
David Laight: david%l8s.co.uk@localhost
Home |
Main Index |
Thread Index |
Old Index