diff options
author | Stefan Bellon <[email protected]> | 2003-12-28 14:12:16 +0000 |
---|---|---|
committer | Stefan Bellon <[email protected]> | 2003-12-28 14:12:16 +0000 |
commit | 02ae08d6ef94c461c7aa82f50fb0c111cc8ead82 (patch) | |
tree | 3cb13daf0f20df967563036646b40836d412518e /g10/plaintext.c | |
parent | * keyserver.c (strip_leading_space, get_arg): New. (diff) | |
download | gnupg-02ae08d6ef94c461c7aa82f50fb0c111cc8ead82.tar.gz gnupg-02ae08d6ef94c461c7aa82f50fb0c111cc8ead82.zip |
cleaned up RISC OS code and removed lots of unnecessary stuff
Diffstat (limited to 'g10/plaintext.c')
-rw-r--r-- | g10/plaintext.c | 11 |
1 files changed, 7 insertions, 4 deletions
diff --git a/g10/plaintext.c b/g10/plaintext.c index 89043026c..6aad0ef5a 100644 --- a/g10/plaintext.c +++ b/g10/plaintext.c @@ -114,10 +114,13 @@ handle_plaintext( PKT_plaintext *pt, md_filter_context_t *mfx, goto leave; } #else /* __riscos__ */ - /* Convert all '.' in fname to '/' -- we don't create directories! */ - for( c=0; fname[c]; ++c ) - if( fname[c] == '.' ) - fname[c] = '/'; + /* If no output filename was given, i.e. we constructed it, + convert all '.' in fname to '/' but not vice versa as + we don't create directories! */ + if( !opt.outfile ) + for( c=0; fname[c]; ++c ) + if( fname[c] == '.' ) + fname[c] = '/'; if( fp || nooutput ) ; |