summaryrefslogtreecommitdiff
path: root/emulators/xcopilot/patches/patch-ae
blob: 77403fde8742487c42098bb5e94874d619b74ee7 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
$NetBSD: patch-ae,v 1.1 1999/03/15 13:54:24 simonb Exp $

--- main.c.orig	Tue Aug 25 15:06:36 1998
+++ main.c	Tue Mar 16 00:45:28 1999
@@ -638,7 +638,6 @@
   struct stat buf;
 
   expand_tilde(&pilot->DataDir);
-  add_slash(&pilot->DataDir);
   if (stat(pilot->DataDir, &buf) == -1) {
     if (errno == ENOENT) {
       if (mkdir(pilot->DataDir, S_IRWXU)) {
@@ -651,6 +650,7 @@
         exit(1);
     }
   }
+  add_slash(&pilot->DataDir);
 
   /* Set the memory version */
   pdebug_memversion = pilot->MemVersion;