1
0
Fork 0
mirror of git://git.gnupg.org/gnupg.git synced 2025-07-03 22:56:33 +02:00

The rest of the VMS changes.

This commit is contained in:
Werner Koch 2010-09-28 15:55:24 +00:00
parent aa29ba1689
commit 6764837956
10 changed files with 68 additions and 11 deletions

View file

@ -1,12 +1,9 @@
2010-09-28 Werner Koch <wk@g10code.com>
* gpgv.c (ttyfp_is, init_ttyfp) [__VMS]: Add subs.
2010-09-28 Steven M. Schweda <sms@antinode.info> (wk)
Changes to help the VMS port. See
http://antinode.info/dec/sw/gnupg.html .
* gpgv.c (ttyfp_is, init_ttyfp) [__VMS]: Add stubs.
* build-packet.c (do_plaintext) [__VMS]: Disable error message.
* keyserver.c (keyserver_spawn) [__VMS]: Do not add the DIRSEP_S.
* misc.c [__VMS]: Include <time.h>.

View file

@ -248,8 +248,13 @@ open_outfile( const char *iname, int mode, IOBUF *a )
#endif /* USE_ONLY_8DOT3 */
{
buf = xmalloc(strlen(iname)+4+1);
#ifdef __VMS
vms_append_ext (buf, iname,
mode==1 ? "asc" : mode==2 ? "sig" : "gpg");
#else /*!def __VMS*/
strcpy(stpcpy(buf,iname), mode==1 ? EXTSEP_S "asc" :
mode==2 ? EXTSEP_S "sig" : EXTSEP_S "gpg");
#endif /*!def __VMS*/
}
name = buf;
}
@ -435,6 +440,15 @@ try_make_homedir( const char *fname )
fname, strerror(errno) );
else if( !opt.quiet )
log_info( _("directory `%s' created\n"), fname );
#ifdef __VMS
/* Explicitly remove group and world (other) access, which may
be allowed by default. */
if (chmod (fname, S_IRWXU ))
log_fatal ("can't set protection on directory `%s': %s\n",
fname, strerror (errno));
#endif /*def __VMS*/
copy_options_file( fname );
/* log_info(_("you have to start GnuPG again, " */
/* "so it can read the new configuration file\n") ); */

View file

@ -25,9 +25,11 @@
#include <string.h>
#include <unistd.h>
#include <assert.h>
#if !defined(HAVE_DOSISH_SYSTEM) && !defined(__riscos__)
#include <sys/socket.h>
#include <sys/un.h>
#ifdef ENABLE_AGENT_SUPPORT
# if !defined(HAVE_DOSISH_SYSTEM) && !defined(__riscos__)
# include <sys/socket.h>
# include <sys/un.h>
# endif
#endif
#if defined (_WIN32)
#include <windows.h>

View file

@ -38,6 +38,10 @@
#include "main.h"
#include "ttyio.h"
#ifdef __VMS
# include "vms.h"
#endif /* __VMS */
#ifdef HAVE_DOSISH_SYSTEM
void init_signals(void) {}
void pause_on_sigusr(int which) {}
@ -110,6 +114,12 @@ got_fatal_signal( int sig )
#endif
write(2, " caught ... exiting\n", 20 );
#ifdef __VMS
/* 2006-08-10 SMS.
Restore terminal echo, if needed, before exiting. */
vms_set_term_echo (-1);
#endif /* def __VMS */
/* Reset action to default action and raise signal again. */
init_one_signal (sig, SIG_DFL, 0);
remove_lockfiles ();