1
0
mirror of git://git.gnupg.org/gnupg.git synced 2024-06-01 22:28:02 +02:00

Terminate csh commands with a semicolon.

Fixes bug#1386.

* agent/gpg-agent.c (main): Terminate csh style output with a semicolon.
* scd/scdaemon.c: Ditto.
This commit is contained in:
Werner Koch 2012-01-03 11:50:13 +01:00
parent 3005b0a6f4
commit 217d2ec8af
2 changed files with 4 additions and 4 deletions

View File

@ -1175,13 +1175,13 @@ main (int argc, char **argv )
if (csh_style)
{
*strchr (infostr, '=') = ' ';
printf ("setenv %s\n", infostr);
printf ("setenv %s;\n", infostr);
if (opt.ssh_support)
{
*strchr (infostr_ssh_sock, '=') = ' ';
printf ("setenv %s\n", infostr_ssh_sock);
printf ("setenv %s;\n", infostr_ssh_sock);
*strchr (infostr_ssh_pid, '=') = ' ';
printf ("setenv %s\n", infostr_ssh_pid);
printf ("setenv %s;\n", infostr_ssh_pid);
}
}
else

View File

@ -828,7 +828,7 @@ main (int argc, char **argv )
if (csh_style)
{
*strchr (infostr, '=') = ' ';
printf ( "setenv %s\n", infostr);
printf ( "setenv %s;\n", infostr);
}
else
{