[svn] GnuPG - r4212 - in trunk: . g10

svn author wk cvs at cvs.gnupg.org
Tue Aug 1 13:20:20 CEST 2006


Author: wk
Date: 2006-08-01 13:20:18 +0200 (Tue, 01 Aug 2006)
New Revision: 4212

Modified:
   trunk/ChangeLog
   trunk/NEWS
   trunk/README
   trunk/g10/ChangeLog
   trunk/g10/openfile.c
Log:
Preparing 1.4.5


Modified: trunk/ChangeLog
===================================================================
--- trunk/ChangeLog	2006-07-31 11:40:14 UTC (rev 4211)
+++ trunk/ChangeLog	2006-08-01 11:20:18 UTC (rev 4212)
@@ -1,3 +1,11 @@
+2006-08-01  Werner Koch  <wk at g10code.com>
+
+	Released 1.4.5.
+
+2006-07-31  Werner Koch  <wk at g10code.com>
+
+	* README: Updated info on the key used to sign the tarball.
+
 2006-07-28  Werner Koch  <wk at g10code.com>
 
 	Released 1.4.5rc1.

Modified: trunk/NEWS
===================================================================
--- trunk/NEWS	2006-07-31 11:40:14 UTC (rev 4211)
+++ trunk/NEWS	2006-08-01 11:20:18 UTC (rev 4212)
@@ -1,4 +1,4 @@
-Noteworthy changes in version 1.4.5
+Noteworthy changes in version 1.4.5 (2006-08-01)
 ------------------------------------------------
 
     * Reverted check for valid standard handles under Windows.

Modified: trunk/README
===================================================================
--- trunk/README	2006-07-31 11:40:14 UTC (rev 4211)
+++ trunk/README	2006-08-01 11:20:18 UTC (rev 4212)
@@ -1,7 +1,7 @@
 
 		    GnuPG - The GNU Privacy Guard
 		   -------------------------------
-			    Version 1.4.4
+			    Version 1.4.5
 
 	 Copyright 1998, 1999, 2000, 2001, 2002, 2003, 2004,
 		 2005, 2006 Free Software Foundation, Inc.
@@ -86,10 +86,10 @@
 	$ gpg --verify gnupg-x.y.z.tar.gz.sig
 
        This checks that the detached signature gnupg-x.y.z.tar.gz.sig
-       is indeed a signature of gnupg-x.y.z.tar.gz.  The key used to
-       create this signature is:
+       is indeed a signature of gnupg-x.y.z.tar.gz.  The key currently
+       used to create this signature is:
 
-       "pub  1024D/57548DCD 1998-07-07 Werner Koch (gnupg sig) <dd9jn at gnu.org>"
+       "pub  1024R/1CE0C630 2006-01-01 Werner Koch (dist sig) <dd9jn at gnu.org>"
 
        If you do not have this key, you can get it from the source in
        the file doc/samplekeys.asc (use "gpg --import  doc/samplekeys.asc"
@@ -97,7 +97,7 @@
        make sure that this is really the key and not a faked one. You
        can do this by comparing the output of:
 
-		$ gpg --fingerprint 0x57548DCD
+		$ gpg --fingerprint 0x1CE0C630
 
        with the fingerprint published elsewhere.
 

Modified: trunk/g10/ChangeLog
===================================================================
--- trunk/g10/ChangeLog	2006-07-31 11:40:14 UTC (rev 4211)
+++ trunk/g10/ChangeLog	2006-08-01 11:20:18 UTC (rev 4212)
@@ -1,5 +1,8 @@
 2006-07-31  Werner Koch  <wk at g10code.com>
 
+	* openfile.c (open_outfile) [USE_ONLY_8DOT3]: Search backwards for
+	the dot.  Fixes bug 654.
+
 	* passphrase.c (agent_open): Use log_info instead of log_error to
 	allow a fallback without having gpg return an error code.  Fixes
 	bug #655.

Modified: trunk/g10/openfile.c
===================================================================
--- trunk/g10/openfile.c	2006-07-31 11:40:14 UTC (rev 4211)
+++ trunk/g10/openfile.c	2006-08-01 11:20:18 UTC (rev 4212)
@@ -201,10 +201,10 @@
 #ifdef USE_ONLY_8DOT3
       if (opt.mangle_dos_filenames)
         {
-          /* It is quite common DOS system to have only one dot in a
+          /* It is quite common for DOS system to have only one dot in a
            * a filename So if we have something like this, we simple
-           * replace the suffix execpt in cases where the suffix is
-           * larger than 3 characters and not the same as.
+           * replace the suffix except in cases where the suffix is
+           * larger than 3 characters and not identlically to the new one.
            * We should really map the filenames to 8.3 but this tends to
            * be more complicated and is probaly a duty of the filesystem
            */
@@ -214,16 +214,22 @@
           
           buf = xmalloc(strlen(iname)+4+1);
           strcpy(buf,iname);
-          dot = strchr(buf, '.' );
+          dot = strrchr(buf, '.' );
           if ( dot && dot > buf && dot[1] && strlen(dot) <= 4
-				  && CMP_FILENAME(newsfx, dot) )
+               && CMP_FILENAME(newsfx, dot) 
+               && !(strchr (dot, '/') || strchr (dot, '\\')))
             {
-              strcpy(dot, newsfx );
+              /* There is a dot, the dot is not the first character,
+                 the suffix is not longer than 3, the suffix is not
+                 equal to the new suffix and tehre is no path delimter
+                 after the dot (e.g. foo.1/bar): Replace the
+                 suffix. */
+              strcpy (dot, newsfx );
             }
-          else if ( dot && !dot[1] ) /* don't duplicate a dot */
-            strcpy( dot, newsfx+1 );
+          else if ( dot && !dot[1] ) /* Don't duplicate a trailing dot. */
+            strcpy ( dot, newsfx+1 );
           else
-            strcat ( buf, newsfx );
+            strcat ( buf, newsfx ); /* Just append the new suffix. */
         }
       if (!buf)
 #endif /* USE_ONLY_8DOT3 */




More information about the Gnupg-commits mailing list