* is almost entirely format based.
*/
+#if HAVE_CONFIG_H
+# include "config.h"
+#endif
+
#include <sys/types.h>
#include <sys/stat.h>
snprintf (fmt, sizeof (fmt), "%%%ss", prefix);
snprintf (dest, destlen, fmt, cctx->need_passphrase ? "PGPPASSFD=0" : "");
}
- else if (!cctx->need_passphrase)
+ else if (!cctx->need_passphrase || pgp_use_gpg_agent())
optional = 0;
break;
}