summaryrefslogtreecommitdiffstats
path: root/g10/ringedit.c
diff options
context:
space:
mode:
authorWerner Koch <wk@gnupg.org>1998-02-24 19:50:46 +0100
committerWerner Koch <wk@gnupg.org>1998-02-24 19:50:46 +0100
commit5a05af2bca319adc9a915ff4466f04c3ef05142a (patch)
tree24292fd49662c09acbe4d6eae321888cbb175585 /g10/ringedit.c
parentrel 0.2.7 mit kleines Korrekturen (diff)
downloadgnupg2-5a05af2bca319adc9a915ff4466f04c3ef05142a.tar.xz
gnupg2-5a05af2bca319adc9a915ff4466f04c3ef05142a.zip
Renamed to GNUPGV-0-2-8
Diffstat (limited to 'g10/ringedit.c')
-rw-r--r--g10/ringedit.c14
1 files changed, 10 insertions, 4 deletions
diff --git a/g10/ringedit.c b/g10/ringedit.c
index 95f0ef65a..b5d6ec8b1 100644
--- a/g10/ringedit.c
+++ b/g10/ringedit.c
@@ -1,14 +1,14 @@
/* ringedit.c - Function for key ring editing
- * Copyright (c) 1997 by Werner Koch (dd9jn)
+ * Copyright (C) 1998 Free Software Foundation, Inc.
*
- * This file is part of G10.
+ * This file is part of GNUPG.
*
- * G10 is free software; you can redistribute it and/or modify
+ * GNUPG is free software; you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
* the Free Software Foundation; either version 2 of the License, or
* (at your option) any later version.
*
- * G10 is distributed in the hope that it will be useful,
+ * GNUPG is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
* GNU General Public License for more details.
@@ -888,12 +888,18 @@ keyring_copy( KBPOS *kbpos, int mode, KBNODE root )
}
}
/* rename and make backup file */
+ #if __MINGW32__
+ remove( bakfname );
+ #endif
if( rename( rentry->fname, bakfname ) ) {
log_error("%s: rename to %s failed: %s\n",
rentry->fname, bakfname, strerror(errno) );
rc = G10ERR_RENAME_FILE;
goto leave;
}
+ #if __MINGW32__
+ remove( rentry->fname );
+ #endif
if( rename( tmpfname, rentry->fname ) ) {
log_error("%s: rename to %s failed: %s\n",
tmpfname, rentry->fname,strerror(errno) );