[Gpg4win-commits] r719 - in trunk: . src

scm-commit@wald.intevation.org scm-commit at wald.intevation.org
Tue Feb 19 16:45:20 CET 2008


Author: marcus
Date: 2008-02-19 16:45:19 +0100 (Tue, 19 Feb 2008)
New Revision: 719

Modified:
   trunk/ChangeLog
   trunk/src/kleowrap.c
Log:
2008-02-19  Marcus Brinkmann  <marcus at g10code.de>

	* src/kleowrap.c: Change working directory.


Modified: trunk/ChangeLog
===================================================================
--- trunk/ChangeLog	2008-02-19 15:40:15 UTC (rev 718)
+++ trunk/ChangeLog	2008-02-19 15:45:19 UTC (rev 719)
@@ -1,5 +1,7 @@
 2008-02-19  Marcus Brinkmann  <marcus at g10code.de>
 
+	* src/kleowrap.c: Change working directory.
+
 	* src/kleowrap.c: New file.
 	* src/kleopatra.bat: Removed.
 	* src/Makefile.am (EXTRA_DIST): Remove kleopatra.bat, add

Modified: trunk/src/kleowrap.c
===================================================================
--- trunk/src/kleowrap.c	2008-02-19 15:40:15 UTC (rev 718)
+++ trunk/src/kleowrap.c	2008-02-19 15:45:19 UTC (rev 719)
@@ -115,11 +115,13 @@
       return 2;
     }
 
-  /* Insert bin directory.  */
+  /* Switch directory and insert bin directory.  */
   p = strrchr (pgm, '\\');
   if (!p)
     goto leave;
-  p++;
+  *p = '\0';
+  chdir (pgm);
+  *(p++) = '\\';
   memmove (p + 4, p, strlen (p) + 1);
   strncpy (p, "bin\\", 4);
 



More information about the Gpg4win-commits mailing list