aboutsummaryrefslogtreecommitdiffstats
path: root/g10/openfile.c
diff options
context:
space:
mode:
Diffstat (limited to '')
-rw-r--r--g10/openfile.c5
1 files changed, 3 insertions, 2 deletions
diff --git a/g10/openfile.c b/g10/openfile.c
index 512633080..249e9c9a1 100644
--- a/g10/openfile.c
+++ b/g10/openfile.c
@@ -124,7 +124,7 @@ open_outfile( const char *iname, int mode )
/****************
- * Try to open a file without the extension ".sig"
+ * Try to open a file without the extension ".sig" or ".asc"
* Return NULL if such a file is not available.
*/
IOBUF
@@ -135,7 +135,8 @@ open_sigfile( const char *iname )
if( iname ) {
len = strlen(iname);
- if( len > 4 && !strcmp(iname + len - 4, ".sig") ) {
+ if( len > 4 && ( !strcmp(iname + len - 4, ".sig")
+ || !strcmp(iname + len - 4, ".asc")) ) {
char *buf;
buf = m_strdup(iname);
buf[len-4] = 0 ;