diff options
author | Werner Koch <[email protected]> | 1999-01-24 17:16:40 +0000 |
---|---|---|
committer | Werner Koch <[email protected]> | 1999-01-24 17:16:40 +0000 |
commit | a16e15282a0d75b4843f009a49fe1a20de9b7980 (patch) | |
tree | 86ec101fa56b80f4f3c93a69acfda0be92a84a52 /g10/openfile.c | |
parent | See ChangeLog: Thu Jan 21 06:22:10 CET 1999 Werner Koch (diff) | |
download | gnupg-a16e15282a0d75b4843f009a49fe1a20de9b7980.tar.gz gnupg-a16e15282a0d75b4843f009a49fe1a20de9b7980.zip |
See ChangeLog: Sun Jan 24 18:16:26 CET 1999 Werner Koch
Diffstat (limited to 'g10/openfile.c')
-rw-r--r-- | g10/openfile.c | 13 |
1 files changed, 12 insertions, 1 deletions
diff --git a/g10/openfile.c b/g10/openfile.c index 5b2d46840..8e5a51afe 100644 --- a/g10/openfile.c +++ b/g10/openfile.c @@ -33,6 +33,11 @@ #include "status.h" #include "i18n.h" +#ifdef USE_ONLY_8DOT3 + #define SKELEXT ".skl" +#else + #define SKELEXT ".skel" +#endif /**************** * Check whether FNAME exists and ask if it's okay to overwrite an @@ -91,6 +96,9 @@ open_outfile( const char *iname, int mode, IOBUF *a ) if( opt.outfile ) name = opt.outfile; else { + #ifdef USE_ONLY_8DOT3 + #error please implement this + #endif buf = m_alloc(strlen(iname)+4+1); strcpy(stpcpy(buf,iname), mode==1 ? ".asc" : mode==2 ? ".sig" : ".gpg"); @@ -122,6 +130,9 @@ open_sigfile( const char *iname ) IOBUF a = NULL; size_t len; + #ifdef USE_ONLY_8DOT3 + #error please implement this + #endif if( iname && !(*iname == '-' && !iname[1]) ) { len = strlen(iname); if( len > 4 && ( !strcmp(iname + len - 4, ".sig") @@ -152,7 +163,7 @@ copy_options_file( const char *destdir ) int c; fname = m_alloc( strlen(datadir) + strlen(destdir) + 15 ); - strcpy(stpcpy(fname, datadir), "/options.skel" ); + strcpy(stpcpy(fname, datadir), "/options" SKELEXT ); src = fopen( fname, "r" ); if( !src ) { log_error(_("%s: can't open: %s\n"), fname, strerror(errno) ); |