diff options
author | Werner Koch <[email protected]> | 2009-03-25 14:58:31 +0000 |
---|---|---|
committer | Werner Koch <[email protected]> | 2009-03-25 14:58:31 +0000 |
commit | 6dc17a2b4dfcb90e19219cd6f48b921a977d5d4b (patch) | |
tree | 79944244885afa0481ba8a54f4fe7c62754ccf5a | |
parent | Preparing a snapshot. (diff) | |
download | gnupg-6dc17a2b4dfcb90e19219cd6f48b921a977d5d4b.tar.gz gnupg-6dc17a2b4dfcb90e19219cd6f48b921a977d5d4b.zip |
log file fixes.
Diffstat (limited to '')
-rw-r--r-- | agent/ChangeLog | 4 | ||||
-rw-r--r-- | agent/gpg-agent.c | 7 | ||||
-rw-r--r-- | jnlib/ChangeLog | 5 | ||||
-rw-r--r-- | jnlib/logging.c | 24 | ||||
-rw-r--r-- | jnlib/t-support.c | 1 | ||||
-rw-r--r-- | po/be.po | 2 | ||||
-rw-r--r-- | po/ca.po | 2 | ||||
-rw-r--r-- | po/cs.po | 2 | ||||
-rw-r--r-- | po/da.po | 2 | ||||
-rw-r--r-- | po/de.po | 2 | ||||
-rw-r--r-- | po/el.po | 2 | ||||
-rw-r--r-- | po/eo.po | 2 | ||||
-rw-r--r-- | po/es.po | 2 | ||||
-rw-r--r-- | po/et.po | 2 | ||||
-rw-r--r-- | po/fi.po | 2 | ||||
-rw-r--r-- | po/fr.po | 2 | ||||
-rw-r--r-- | po/gl.po | 2 | ||||
-rw-r--r-- | po/hu.po | 2 | ||||
-rw-r--r-- | po/id.po | 2 | ||||
-rw-r--r-- | po/it.po | 2 | ||||
-rw-r--r-- | po/ja.po | 2 | ||||
-rw-r--r-- | po/nb.po | 2 | ||||
-rw-r--r-- | po/pl.po | 2 | ||||
-rw-r--r-- | po/pt.po | 2 | ||||
-rw-r--r-- | po/pt_BR.po | 2 | ||||
-rw-r--r-- | po/ro.po | 2 | ||||
-rw-r--r-- | po/ru.po | 2 | ||||
-rw-r--r-- | po/sk.po | 2 | ||||
-rw-r--r-- | po/sv.po | 2 | ||||
-rw-r--r-- | po/tr.po | 2 | ||||
-rw-r--r-- | po/zh_CN.po | 2 | ||||
-rw-r--r-- | po/zh_TW.po | 2 |
32 files changed, 54 insertions, 41 deletions
diff --git a/agent/ChangeLog b/agent/ChangeLog index 92b713164..a2e878db6 100644 --- a/agent/ChangeLog +++ b/agent/ChangeLog @@ -1,3 +1,7 @@ +2009-03-25 Werner Koch <[email protected]> + + * gpg-agent.c (main): Print a started message to show the real pid. + 2009-03-20 Werner Koch <[email protected]> * learncard.c (struct kpinfo_cp_parm_s): Add field CTRL. diff --git a/agent/gpg-agent.c b/agent/gpg-agent.c index e5372c4f9..b5f9a47e2 100644 --- a/agent/gpg-agent.c +++ b/agent/gpg-agent.c @@ -467,6 +467,7 @@ parse_rereadable_options (ARGPARSE_ARGS *pargs, int reread) || strcmp (current_logfile, pargs->r.ret_str)) { log_set_file (pargs->r.ret_str); + assuan_set_assuan_log_stream (log_get_stream ()); xfree (current_logfile); current_logfile = xtrystrdup (pargs->r.ret_str); } @@ -980,9 +981,10 @@ main (int argc, char **argv ) else if (pid) { /* We are the parent */ char *infostr, *infostr_ssh_sock, *infostr_ssh_pid; - + + /* Close the socket FD. */ close (fd); - + /* Note that we used a standard fork so that Pth runs in both the parent and the child. The pth_fork would terminate Pth in the child but that is not the way we @@ -1184,6 +1186,7 @@ main (int argc, char **argv ) } #endif /*!HAVE_W32_SYSTEM*/ + log_info ("%s %s started\n", strusage(11), strusage(13) ); handle_connections (fd, opt.ssh_support ? fd_ssh : GNUPG_INVALID_FD); assuan_sock_close (fd); } diff --git a/jnlib/ChangeLog b/jnlib/ChangeLog index 05c8e98a5..8c12f5fc5 100644 --- a/jnlib/ChangeLog +++ b/jnlib/ChangeLog @@ -1,3 +1,8 @@ +2009-03-25 Werner Koch <[email protected]> + + * logging.c (fun_closer): Never close fd 2. + (set_file_fd): Close logstream early. + 2009-02-25 Werner Koch <[email protected]> * logging.c (get_tid_callback): New. diff --git a/jnlib/logging.c b/jnlib/logging.c index b06361980..fb41b45ef 100644 --- a/jnlib/logging.c +++ b/jnlib/logging.c @@ -218,7 +218,7 @@ fun_closer (void *cookie_arg) { struct fun_cookie_s *cookie = cookie_arg; - if (cookie->fd != -1) + if (cookie->fd != -1 && cookie->fd != 2) close (cookie->fd); jnlib_free (cookie); log_socket = -1; @@ -239,6 +239,15 @@ set_file_fd (const char *name, int fd) struct fun_cookie_s *cookie; #endif + /* Close an open log stream. */ + if (logstream) + { + if (logstream != stderr && logstream != stdout) + fclose (logstream); + logstream = NULL; + } + + /* Figure out what kind of logging we want. */ if (name && !strcmp (name, "-")) { name = NULL; @@ -256,6 +265,7 @@ set_file_fd (const char *name, int fd) want_socket = 0; } + /* Setup a new stream. */ #ifdef USE_FUNWRITER cookie = jnlib_xmalloc (sizeof *cookie + (name? strlen (name):0)); strcpy (cookie->name, name? name:""); @@ -310,15 +320,7 @@ set_file_fd (const char *name, int fd) #endif /*!USE_FUNWRITER*/ - /* On success close the old logstream right now, so that we are - really sure it has been closed. */ - if (fp && logstream) - { - if (logstream != stderr && logstream != stdout) - fclose (logstream); - logstream = NULL; - } - + /* On error default to stderr. */ if (!fp) { if (name) @@ -333,8 +335,6 @@ set_file_fd (const char *name, int fd) else setvbuf (fp, NULL, _IOLBF, 0); - if (logstream && logstream != stderr && logstream != stdout) - fclose (logstream); logstream = fp; /* We always need to print the prefix and the pid for socket mode, diff --git a/jnlib/t-support.c b/jnlib/t-support.c index 126104846..756c54c7f 100644 --- a/jnlib/t-support.c +++ b/jnlib/t-support.c @@ -120,6 +120,7 @@ gcry_free (void *a) int gpg_err_code_from_errno (int err) { + (void)err; assert (!"stub function"); return -1; } @@ -6,7 +6,7 @@ msgid "" msgstr "" "Project-Id-Version: gnupg 1.2.2\n" "Report-Msgid-Bugs-To: [email protected]\n" -"POT-Creation-Date: 2009-03-24 18:42+0100\n" +"POT-Creation-Date: 2009-03-24 18:56+0100\n" "PO-Revision-Date: 2003-10-30 16:35+0200\n" "Last-Translator: Ales Nyakhaychyk <[email protected]>\n" "Language-Team: Belarusian <[email protected]>\n" @@ -27,7 +27,7 @@ msgid "" msgstr "" "Project-Id-Version: gnupg 1.4.0\n" "Report-Msgid-Bugs-To: [email protected]\n" -"POT-Creation-Date: 2009-03-24 18:42+0100\n" +"POT-Creation-Date: 2009-03-24 18:56+0100\n" "PO-Revision-Date: 2005-02-04 02:04+0100\n" "Last-Translator: Jordi Mallach <[email protected]>\n" "Language-Team: Catalan <[email protected]>\n" @@ -7,7 +7,7 @@ msgid "" msgstr "" "Project-Id-Version: gnupg-1.3.92\n" "Report-Msgid-Bugs-To: [email protected]\n" -"POT-Creation-Date: 2009-03-24 18:42+0100\n" +"POT-Creation-Date: 2009-03-24 18:56+0100\n" "PO-Revision-Date: 2004-11-26 09:12+0200\n" "Last-Translator: Roman Pavlik <[email protected]>\n" "Language-Team: Czech <[email protected]>\n" @@ -8,7 +8,7 @@ msgid "" msgstr "" "Project-Id-Version: gnupg 1.0.0h\n" "Report-Msgid-Bugs-To: [email protected]\n" -"POT-Creation-Date: 2009-03-24 18:42+0100\n" +"POT-Creation-Date: 2009-03-24 18:56+0100\n" "PO-Revision-Date: 2003-12-03 16:11+0100\n" "Last-Translator: Birger Langkjer <[email protected]>\n" "Language-Team: Danish <[email protected]>\n" @@ -9,7 +9,7 @@ msgid "" msgstr "" "Project-Id-Version: gnupg-2.0.10\n" "Report-Msgid-Bugs-To: [email protected]\n" -"POT-Creation-Date: 2009-03-24 18:42+0100\n" +"POT-Creation-Date: 2009-03-24 18:56+0100\n" "PO-Revision-Date: 2009-03-24 18:54+0100\n" "Last-Translator: Walter Koch <[email protected]>\n" "Language-Team: German <[email protected]>\n" @@ -6,7 +6,7 @@ msgid "" msgstr "" "Project-Id-Version: gnupg-1.1.92\n" "Report-Msgid-Bugs-To: [email protected]\n" -"POT-Creation-Date: 2009-03-24 18:42+0100\n" +"POT-Creation-Date: 2009-03-24 18:56+0100\n" "PO-Revision-Date: 2003-06-27 12:00+0200\n" "Last-Translator: Dokianakis Theofanis <[email protected]>\n" "Language-Team: Greek <[email protected]>\n" @@ -6,7 +6,7 @@ msgid "" msgstr "" "Project-Id-Version: gnupg 1.0.6d\n" "Report-Msgid-Bugs-To: [email protected]\n" -"POT-Creation-Date: 2009-03-24 18:42+0100\n" +"POT-Creation-Date: 2009-03-24 18:56+0100\n" "PO-Revision-Date: 2002-04-14 14:33+0100\n" "Last-Translator: Edmund GRIMLEY EVANS <[email protected]>\n" "Language-Team: Esperanto <[email protected]>\n" @@ -11,7 +11,7 @@ msgid "" msgstr "" "Project-Id-Version: gnupg 2.0.9\n" "Report-Msgid-Bugs-To: [email protected]\n" -"POT-Creation-Date: 2009-03-24 18:42+0100\n" +"POT-Creation-Date: 2009-03-24 18:56+0100\n" "PO-Revision-Date: 2008-12-14 19:34+0100\n" "Last-Translator: Jaime Su�rez <[email protected]>\n" "Language-Team: Spanish <[email protected]>\n" @@ -6,7 +6,7 @@ msgid "" msgstr "" "Project-Id-Version: gnupg 1.2.2\n" "Report-Msgid-Bugs-To: [email protected]\n" -"POT-Creation-Date: 2009-03-24 18:42+0100\n" +"POT-Creation-Date: 2009-03-24 18:56+0100\n" "PO-Revision-Date: 2004-06-17 11:04+0300\n" "Last-Translator: Toomas Soome <[email protected]>\n" "Language-Team: Estonian <[email protected]>\n" @@ -22,7 +22,7 @@ msgid "" msgstr "" "Project-Id-Version: gnupg 1.2.2\n" "Report-Msgid-Bugs-To: [email protected]\n" -"POT-Creation-Date: 2009-03-24 18:42+0100\n" +"POT-Creation-Date: 2009-03-24 18:56+0100\n" "PO-Revision-Date: 2004-06-16 22:40+0300\n" "Last-Translator: Tommi Vainikainen <[email protected]>\n" "Language-Team: Finnish <[email protected]>\n" @@ -11,7 +11,7 @@ msgid "" msgstr "" "Project-Id-Version: gnupg 1.4.2rc2\n" "Report-Msgid-Bugs-To: [email protected]\n" -"POT-Creation-Date: 2009-03-24 18:42+0100\n" +"POT-Creation-Date: 2009-03-24 18:56+0100\n" "PO-Revision-Date: 2008-09-30 19:38+0200\n" "Last-Translator: Ga�l Qu�ri <[email protected]>\n" "Language-Team: French <[email protected]>\n" @@ -6,7 +6,7 @@ msgid "" msgstr "" "Project-Id-Version: gnupg 1.2.4\n" "Report-Msgid-Bugs-To: [email protected]\n" -"POT-Creation-Date: 2009-03-24 18:42+0100\n" +"POT-Creation-Date: 2009-03-24 18:56+0100\n" "PO-Revision-Date: 2003-12-04 11:39+0100\n" "Last-Translator: Jacobo Tarrio <[email protected]>\n" "Language-Team: Galician <[email protected]>\n" @@ -6,7 +6,7 @@ msgid "" msgstr "" "Project-Id-Version: gnupg 1.2.5\n" "Report-Msgid-Bugs-To: [email protected]\n" -"POT-Creation-Date: 2009-03-24 18:42+0100\n" +"POT-Creation-Date: 2009-03-24 18:56+0100\n" "PO-Revision-Date: 2004-06-19 21:53+0200\n" "Last-Translator: Nagy Ferenc L�szl� <[email protected]>\n" "Language-Team: Hungarian <[email protected]>\n" @@ -7,7 +7,7 @@ msgid "" msgstr "" "Project-Id-Version: gnupg-id\n" "Report-Msgid-Bugs-To: [email protected]\n" -"POT-Creation-Date: 2009-03-24 18:42+0100\n" +"POT-Creation-Date: 2009-03-24 18:56+0100\n" "PO-Revision-Date: 2004-06-17 16:32+0700\n" "Last-Translator: Tedi Heriyanto <[email protected]>\n" "Language-Team: Indonesian <[email protected]>\n" @@ -6,7 +6,7 @@ msgid "" msgstr "" "Project-Id-Version: gnupg 1.1.92\n" "Report-Msgid-Bugs-To: [email protected]\n" -"POT-Creation-Date: 2009-03-24 18:42+0100\n" +"POT-Creation-Date: 2009-03-24 18:56+0100\n" "PO-Revision-Date: 2008-05-26 12:02+0200\n" "Last-Translator: Marco d'Itri <[email protected]>\n" "Language-Team: Italian <[email protected]>\n" @@ -9,7 +9,7 @@ msgid "" msgstr "" "Project-Id-Version: gnupg 1.3.92\n" "Report-Msgid-Bugs-To: [email protected]\n" -"POT-Creation-Date: 2009-03-24 18:42+0100\n" +"POT-Creation-Date: 2009-03-24 18:56+0100\n" "PO-Revision-Date: 2004-11-23 11:14+0900\n" "Last-Translator: IIDA Yosiaki <[email protected]>\n" "Language-Team: Japanese <[email protected]>\n" @@ -10,7 +10,7 @@ msgid "" msgstr "" "Project-Id-Version: gnupg 1.4.3\n" "Report-Msgid-Bugs-To: [email protected]\n" -"POT-Creation-Date: 2009-03-24 18:42+0100\n" +"POT-Creation-Date: 2009-03-24 18:56+0100\n" "PO-Revision-Date: 2006-06-13 20:31+0200\n" "Last-Translator: Trond Endrest�l <[email protected]>\n" "Language-Team: Norwegian Bokm�l <[email protected]>\n" @@ -9,7 +9,7 @@ msgid "" msgstr "" "Project-Id-Version: gnupg-2.0.7\n" "Report-Msgid-Bugs-To: [email protected]\n" -"POT-Creation-Date: 2009-03-24 18:42+0100\n" +"POT-Creation-Date: 2009-03-24 18:56+0100\n" "PO-Revision-Date: 2007-11-26 19:01+0100\n" "Last-Translator: Jakub Bogusz <[email protected]>\n" "Language-Team: Polish <[email protected]>\n" @@ -9,7 +9,7 @@ msgid "" msgstr "" "Project-Id-Version: gnupg\n" "Report-Msgid-Bugs-To: [email protected]\n" -"POT-Creation-Date: 2009-03-24 18:42+0100\n" +"POT-Creation-Date: 2009-03-24 18:56+0100\n" "PO-Revision-Date: 2002-09-13 18:26+0100\n" "Last-Translator: Pedro Morais <[email protected]>\n" "Language-Team: pt <[email protected]>\n" diff --git a/po/pt_BR.po b/po/pt_BR.po index cf4b8ed1a..ee221ea5d 100644 --- a/po/pt_BR.po +++ b/po/pt_BR.po @@ -13,7 +13,7 @@ msgid "" msgstr "" "Project-Id-Version: gnupg 1.0\n" "Report-Msgid-Bugs-To: [email protected]\n" -"POT-Creation-Date: 2009-03-24 18:42+0100\n" +"POT-Creation-Date: 2009-03-24 18:56+0100\n" "PO-Revision-Date: 2007-08-16 11:35+0200\n" "Last-Translator:\n" "Language-Team: ?\n" @@ -9,7 +9,7 @@ msgid "" msgstr "" "Project-Id-Version: gnupg 1.4.2rc1\n" "Report-Msgid-Bugs-To: [email protected]\n" -"POT-Creation-Date: 2009-03-24 18:42+0100\n" +"POT-Creation-Date: 2009-03-24 18:56+0100\n" "PO-Revision-Date: 2005-05-31 22:00-0500\n" "Last-Translator: Laurentiu Buzdugan <[email protected]>\n" "Language-Team: Romanian <[email protected]>\n" @@ -7,7 +7,7 @@ msgid "" msgstr "" "Project-Id-Version: GnuPG 2.0.10\n" "Report-Msgid-Bugs-To: [email protected]\n" -"POT-Creation-Date: 2009-03-24 18:42+0100\n" +"POT-Creation-Date: 2009-03-24 18:56+0100\n" "PO-Revision-Date: 2008-12-21 00:40+0200\n" "Last-Translator: Maxim Britov <[email protected]>\n" "Language-Team: Russian <[email protected]>\n" @@ -5,7 +5,7 @@ msgid "" msgstr "" "Project-Id-Version: gnupg 1.2.5\n" "Report-Msgid-Bugs-To: [email protected]\n" -"POT-Creation-Date: 2009-03-24 18:42+0100\n" +"POT-Creation-Date: 2009-03-24 18:56+0100\n" "PO-Revision-Date: 2004-07-20 15:52+0200\n" "Last-Translator: Michal Majer <[email protected]>\n" "Language-Team: Slovak <[email protected]>\n" @@ -24,7 +24,7 @@ msgid "" msgstr "" "Project-Id-Version: gnupg trunk\n" "Report-Msgid-Bugs-To: [email protected]\n" -"POT-Creation-Date: 2009-03-24 18:42+0100\n" +"POT-Creation-Date: 2009-03-24 18:56+0100\n" "PO-Revision-Date: 2008-07-21 09:04+0200\n" "Last-Translator: Daniel Nylander <[email protected]>\n" "Language-Team: Swedish <[email protected]>\n" @@ -7,7 +7,7 @@ msgid "" msgstr "" "Project-Id-Version: gnupg 2.0.10rc1\n" "Report-Msgid-Bugs-To: [email protected]\n" -"POT-Creation-Date: 2009-03-24 18:42+0100\n" +"POT-Creation-Date: 2009-03-24 18:56+0100\n" "PO-Revision-Date: 2008-12-14 23:25+0200\n" "Last-Translator: Nilgün Belma Bugüner <[email protected]>\n" "Language-Team: Turkish\n" diff --git a/po/zh_CN.po b/po/zh_CN.po index f2053e3c8..9ef10c501 100644 --- a/po/zh_CN.po +++ b/po/zh_CN.po @@ -7,7 +7,7 @@ msgid "" msgstr "" "Project-Id-Version: gnupg 1.4.4\n" "Report-Msgid-Bugs-To: [email protected]\n" -"POT-Creation-Date: 2009-03-24 18:42+0100\n" +"POT-Creation-Date: 2009-03-24 18:56+0100\n" "PO-Revision-Date: 2006-07-02 10:58+0800\n" "Last-Translator: Meng Jie <[email protected]>\n" "Language-Team: Chinese (simplified) <[email protected]>\n" diff --git a/po/zh_TW.po b/po/zh_TW.po index 0734c30e6..f02fc1674 100644 --- a/po/zh_TW.po +++ b/po/zh_TW.po @@ -9,7 +9,7 @@ msgid "" msgstr "" "Project-Id-Version: gnupg 2.0.10rc1\n" "Report-Msgid-Bugs-To: [email protected]\n" -"POT-Creation-Date: 2009-03-24 18:42+0100\n" +"POT-Creation-Date: 2009-03-24 18:56+0100\n" "PO-Revision-Date: 2008-12-10 22:48+0800\n" "Last-Translator: Jedi Lin <[email protected]>\n" "Language-Team: Chinese (traditional) <[email protected]>\n" |