~ubuntu-branches/ubuntu/intrepid/gnupg2/intrepid

« back to all changes in this revision

Viewing changes to common/simple-pwquery.c

  • Committer: Bazaar Package Importer
  • Author(s): Eric Dorland
  • Date: 2008-04-28 03:22:20 UTC
  • mfrom: (1.1.10 upstream)
  • mto: This revision was merged to the branch mainline in revision 6.
  • Revision ID: james.westby@ubuntu.com-20080428032220-a8rl6klzavd4nvr4
Tags: 2.0.9-2
* The "I've neglected you too long" release.

* debian/control: 
  - Add recommends on gnupg-agent for gpgsm and gnupg2, since they need 
    it under most circumstances. (Closes: #459462, #477691)
  - Depend on pinentry instead of recommend, and move pinentry-gtk2 to the 
    front of the alternatives list. (Closes: #462951)
* keyserver/gpgkeys_curl.c, keyserver/gpgkeys_hkp.c: Fix FTBFS with gcc
  4.3 strictness on bitfields combined with curl. (Closes: #476999)

Show diffs side-by-side

added added

removed removed

Lines of Context:
207
207
  char *dft_display = NULL;
208
208
  char *dft_ttyname = NULL;
209
209
  char *dft_ttytype = NULL;
 
210
  char *dft_xauthority = NULL;
 
211
  char *dft_pinentry_user_data = NULL;
210
212
  int rc = 0;
211
213
 
212
214
  dft_display = getenv ("DISPLAY");
285
287
  }
286
288
#endif /*HAVE_SETLOCALE*/
287
289
 
 
290
  /* Send the XAUTHORITY variable.  */
 
291
  dft_xauthority = getenv ("XAUTHORITY");
 
292
  if (dft_xauthority)
 
293
    {
 
294
      /* We ignore errors here because older gpg-agents don't support
 
295
         this option.  */
 
296
      agent_send_option (fd, "xauthority", dft_xauthority);
 
297
    }
 
298
 
 
299
  /* Send the PINENTRY_USER_DATA variable.  */
 
300
  dft_pinentry_user_data = getenv ("PINENTRY_USER_DATA");
 
301
  if (dft_pinentry_user_data)
 
302
    {
 
303
      /* We ignore errors here because older gpg-agents don't support
 
304
         this option.  */
 
305
      agent_send_option (fd, "pinentry-user-data", dft_pinentry_user_data);
 
306
    }
 
307
 
288
308
  return 0;
289
309
}
290
310